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

TEITokenizer.groovy (revision 479)
42 42
		super(inputurl);
43 43

  
44 44
		this.filename = new File(inputurl.getFile()).getName();
45
		int index = filename.indexOf(".");
45
		int index = filename.lastIndexOf(".");
46 46
		if (index > 0)
47 47
			filename = filename.substring(0, index);
48 48
	}

Also available in: Unified diff