Skip to content

Commit

Permalink
Address matyb#47 by using the last dot in a file path to determine th…
Browse files Browse the repository at this point in the history
…e a file's suffix.
  • Loading branch information
DavidWhitlock committed Mar 5, 2015
1 parent c467121 commit ad867c9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public static Collection<String> getSupportedFileSuffixes() {

public static String getSuffix(String fileName) {
if(fileName != null){
int periodIndex = fileName.indexOf('.');
int periodIndex = fileName.lastIndexOf('.');
if(periodIndex > -1){
return fileName.substring(periodIndex).toLowerCase();
}
Expand Down

0 comments on commit ad867c9

Please sign in to comment.