Skip to content
This repository has been archived by the owner on Dec 28, 2020. It is now read-only.

Commit

Permalink
Fixed bug where files with multiple periods in filename could not be …
Browse files Browse the repository at this point in the history
…uploaded
  • Loading branch information
Emil Öberg committed Jul 8, 2015
1 parent 96bcf45 commit 2e496c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/utilities.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ var utilities = {
},
filenameToLanguageType: function (filename) {
if (filename.indexOf('.') > 0) {
var languageType = filename.substr(filename.indexOf('.')+1).toLowerCase();
var languageType = filename.substr(filename.lastIndexOf('.')+1).toLowerCase();
if (languageType === 'ftl') {
return 'ftl';
} else if (languageType === 'vm') {
Expand Down

0 comments on commit 2e496c3

Please sign in to comment.