one last try fixing the shouldIgnore only filter...

This commit is contained in:
Sebastian McKenzie 2015-05-15 01:46:36 +01:00
parent 6afcef9805
commit d3e385c554

View File

@ -112,20 +112,18 @@ export function shouldIgnore(filename, ignore, only) {
}
if (only.length) {
for (var pattern of (only: Array)) {
var matches = false;
var matches = false;
patternLoop: for (var pattern of (only: Array)) {
for (let filename of (filenames: Array)) {
if (pattern.test(filename)) {
matches = true;
break;
break patternLoop;
}
}
if (!matches) return false;
}
return true;
return matches;
} else if (ignore.length) {
for (let filename of (filenames: Array)) {
for (var pattern of (ignore: Array)) {