fix bug #1
This commit is contained in:
parent
1039aed830
commit
3d2ccd2993
3 changed files with 4 additions and 4 deletions
File diff suppressed because one or more lines are too long
2
js/out/jquery.idealforms.min.js
vendored
2
js/out/jquery.idealforms.min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue