fix bug #3
This commit is contained in:
parent
3d2ccd2993
commit
b75636bc09
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;
|
, 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;
|
||||||
|
|
Loading…
Reference in a new issue