Skip to content

Commit

Permalink
Merge pull request #1 from haikulearning/guikubivan-validation-bug
Browse files Browse the repository at this point in the history
Fix validation for mix of content types and exclusions

* See danialfarid#1026
  • Loading branch information
guikubivan committed Apr 27, 2016
2 parents 332e2d4 + 7bbf116 commit e4c696d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/validate.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,8 @@ ngFileUpload.service('UploadValidate', ['UploadDataUrl', '$q', '$timeout', funct
for (var i = 0; i < split.length; i++) {
var r = globStringToRegex(split[i]);
if (r.regexp) {
regexp += regexp ? '|' : '';
regexp += '(' + r.regexp + ')';
if (i < split.length - 1) {
regexp += '|';
}
} else {
excludes = excludes.concat(r.excludes);
}
Expand Down

0 comments on commit e4c696d

Please sign in to comment.