Skip to content

Commit

Permalink
Merge pull request #210 from bonovan/master
Browse files Browse the repository at this point in the history
fix for broken ignore and allow regex
  • Loading branch information
NajSurf authored Nov 27, 2018
2 parents 8cbb51a + 7717fe0 commit 80c7d13
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions modules/is-ignored.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ module.exports = function(path, patterns_allowed, patterns_ignored) {

var n = 0, skip = false;
if (patterns_allowed.length > 0) {
patterns_allowed = patterns_allowed.map(function(p) {
return upath.toUnix(p);
});

skip = true;
for (n = 0; n < patterns_allowed.length; n++){
if ((new RegExp(patterns_allowed[n])).test(path)) {
Expand All @@ -18,9 +14,6 @@ module.exports = function(path, patterns_allowed, patterns_ignored) {
}
}

patterns_ignored = patterns_ignored.map(function(p) {
return upath.toUnix(p);
});
for (n = 0; n < patterns_ignored.length; n++){
if ((new RegExp(patterns_ignored[n])).test(path)) {
skip = true;
Expand Down

0 comments on commit 80c7d13

Please sign in to comment.