one last try fixing the shouldIgnore only filter...
This commit is contained in:
parent
6afcef9805
commit
d3e385c554
@ -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)) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user