Skip to content

Commit ad867c9

Browse files
committed
Address matyb#47 by using the last dot in a file path to determine the a file's suffix.
1 parent c467121 commit ad867c9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/file-compiler/src/com/sandwich/util/io/filecompiler/CompilerConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public static Collection<String> getSupportedFileSuffixes() {
4444

4545
public static String getSuffix(String fileName) {
4646
if(fileName != null){
47-
int periodIndex = fileName.indexOf('.');
47+
int periodIndex = fileName.lastIndexOf('.');
4848
if(periodIndex > -1){
4949
return fileName.substring(periodIndex).toLowerCase();
5050
}

0 commit comments

Comments
 (0)