path-filters
Advanced tools
Comparing version 1.0.6 to 1.1.0
{ | ||
"name": "path-filters", | ||
"description": "Manages a collection of path-based filters", | ||
"version": "1.0.6", | ||
"version": "1.1.0", | ||
"homepage": "https://github.com/philidem/node-path-filters", | ||
@@ -6,0 +6,0 @@ "authors": [ |
var fs = require('fs'); | ||
var simpleRegExpReplacements = { | ||
'*': '.*?', | ||
'*': '[^/]*?', | ||
'**': '.*?', | ||
'?': '.?' | ||
@@ -73,3 +74,3 @@ }; | ||
function createSimpleRegExp(str) { | ||
return new RegExp('^' + str.replace(/[\*\?]|[^\*\?]*/g, function(match) { | ||
return new RegExp('^' + str.replace(/\*+|\?|[^\*\?]*/g, function(match) { | ||
return simpleRegExpReplacements[match] || escapeRegExpStr(match); | ||
@@ -76,0 +77,0 @@ }) + '$'); |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
51520
190
0