This commit is contained in:
elclanrs 2013-10-09 01:05:09 -04:00
parent 3d2ccd2993
commit b75636bc09
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; , valid = false;
$.each(input.files || [{name: input.value}], function(i, file) { $.each(input.files || [{name: input.value}], function(i, file) {
valid = $.inArray(file.name.match(/\.(.+)$/)[1].toLowerCase(), extensions) > -1; valid = $.inArray(file.name.split('.').pop().toLowerCase(), extensions) > -1;
}); });
return valid; return valid;