Revision 479 tmp/org.txm.groovy.core/src/groovy/filters/TagSentences/TEISentencer.groovy

TEISentencer.groovy (revision 479)
28 28
		super(inputurl);
29 29

  
30 30
		this.filename = new File(inputurl.getFile()).getName();
31
		int index = filename.indexOf(".");
31
		int index = filename.lastIndexOf(".");
32 32
		if (index > 0)
33 33
			filename = filename.substring(0, index);
34 34
	}

Also available in: Unified diff