Skip to content

Commit ea91394

Browse files
committed
Merge pull request matyb#48 from DavidWhitlock/fix-matyb-issue-47
Use the last index of '.' to determine a file's suffix.
2 parents c467121 + ad867c9 commit ea91394

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)