|
|
|
@ -437,11 +437,11 @@
|
|
|
|
|
var matches; |
|
|
|
|
matches = mime.match(r1); |
|
|
|
|
if (matches) { |
|
|
|
|
return fileName.toLowerCase().indexOf(matches[1]) > -1; |
|
|
|
|
return fileName.toLowerCase().endsWith(matches[0]); |
|
|
|
|
} |
|
|
|
|
matches = mime.match(r2); |
|
|
|
|
if (matches) { |
|
|
|
|
return matches[1] === "*" ? true : fileName.toLowerCase().indexOf(matches[1]) > -1; |
|
|
|
|
return matches[1] === "*" ? true : fileName.toLowerCase().endsWith(`.${matches[1]}`); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|