We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 43369d5 + 0bdf3e3 commit dc69da7Copy full SHA for dc69da7
src/modules/file.js
@@ -25,7 +25,7 @@
25
* @return {Array}
26
*/
27
_getTypes = function($input) {
28
- var allowedTypes = $.split( ($input.valAttr('allowing') || '').toLowerCase() );
+ var allowedTypes = ($input.valAttr('allowing') || '').toLowerCase().split(/,\s*/);
29
if ($.inArray('jpg', allowedTypes) > -1 && $.inArray('jpeg', allowedTypes) === -1) {
30
allowedTypes.push('jpeg');
31
}
0 commit comments