This commit is contained in:
elclanrs 2013-10-09 01:02:26 -04:00
parent 1039aed830
commit 3d2ccd2993
3 changed files with 4 additions and 4 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -51,7 +51,7 @@ module.exports = {
, valid = false;
$.each(input.files || [{name: input.value}], function(i, file) {
valid = $.inArray(file.name.match(/\.(.+)$/)[1], extensions) > -1;
valid = $.inArray(file.name.match(/\.(.+)$/)[1].toLowerCase(), extensions) > -1;
});
return valid;