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.
1 parent 92fa2c0 commit 3a7154bCopy full SHA for 3a7154b
src/module.js
@@ -326,15 +326,9 @@ module
326
* @private
327
*/
328
FileUploader.prototype._getFilters = function(filters) {
329
- function trim(str) {
330
- return str.replace(/^\s\s*/, '').replace(/\s\s*$/, '');
331
- }
332
if (angular.isUndefined(filters)) return this.filters;
333
if (angular.isArray(filters)) return filters;
334
- var names = filters.split(',');
335
- for (var i = 0; i < names.length; i++) {
336
- names[i] = trim(names[i]);
337
+ var names = filters.match(/[^\s,]+/g);
338
return this.filters.filter(function(filter) {
339
return names.indexOf(filter.name) !== -1;
340
}, this);
0 commit comments