Revision 479 tmp/org.txm.groovy.core/src/groovy/filters/Tokeniser/Tokeniser.groovy

Tokeniser.groovy (revision 479)
39 39
	public Tokeniser(File text)
40 40
	{
41 41
		this.filename = text.getName();
42
		int index = filename.indexOf(".");
42
		int index = filename.lastIndexOf(".");
43 43
		if(index > 0)
44 44
			filename = filename.substring(0, index);
45 45
	}

Also available in: Unified diff