path-filters
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -105,5 +105,6 @@ var fs = require('fs'); | ||
for (var i = 0, len = this._filters.length; i < len; i++) { | ||
var result = this._filters[i].test(path); | ||
var filter = this._filters[i]; | ||
var result = filter.test(path); | ||
if (result !== false) { | ||
matches.push(result); | ||
matches.push(filter); | ||
} | ||
@@ -140,3 +141,2 @@ } | ||
if (isSimpleRegExp(filter)) { | ||
console.log('regex filter ' + filter); | ||
return new RegExpFilter(createSimpleRegExp(filter), matchResult); | ||
@@ -143,0 +143,0 @@ } else { |
{ | ||
"name": "path-filters", | ||
"description": "Manages a collection of path-based filters", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"homepage": "https://github.com/philidem/node-path-filters", | ||
@@ -6,0 +6,0 @@ "authors": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
50069