path-filters
Advanced tools
Comparing version 1.0.3 to 1.0.4
12
index.js
@@ -84,2 +84,10 @@ var fs = require('fs'); | ||
var allFilter = new FunctionFilter(function() { | ||
return true; | ||
}); | ||
allFilter.toString = function() { | ||
return '*'; | ||
} | ||
function PathFilters() { | ||
@@ -140,3 +148,5 @@ this._filters = []; | ||
if (typeof filter === 'string') { | ||
if (isSimpleRegExp(filter)) { | ||
if (filter === '*') { | ||
return allFilter; | ||
} else if (isSimpleRegExp(filter)) { | ||
return new RegExpFilter(createSimpleRegExp(filter), matchResult); | ||
@@ -143,0 +153,0 @@ } else { |
{ | ||
"name": "path-filters", | ||
"description": "Manages a collection of path-based filters", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"homepage": "https://github.com/philidem/node-path-filters", | ||
@@ -6,0 +6,0 @@ "authors": [ |
Sorry, the diff of this file is not supported yet
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
50252
175