minimatch
Advanced tools
Comparing version 4.0.0 to 4.1.0
@@ -170,3 +170,3 @@ const minimatch = module.exports = (p, pattern, options = {}) => { | ||
// windows support: need to use /, not \ | ||
if (path.sep !== '/') { | ||
if (!options.allowWindowsEscape && path.sep !== '/') { | ||
pattern = pattern.split(path.sep).join('/') | ||
@@ -173,0 +173,0 @@ } |
@@ -5,3 +5,3 @@ { | ||
"description": "a glob matcher in javascript", | ||
"version": "4.0.0", | ||
"version": "4.1.0", | ||
"repository": { | ||
@@ -16,3 +16,3 @@ "type": "git", | ||
"postversion": "npm publish", | ||
"postpublish": "git push origin --all; git push origin --tags" | ||
"prepublishOnly": "git push origin --follow-tags" | ||
}, | ||
@@ -19,0 +19,0 @@ "engines": { |
@@ -190,2 +190,8 @@ # minimatch | ||
### allowWindowsEscape | ||
Windows path separator `\` is by default converted to `/`, which | ||
prohibits the usage of `\` as a escape character. This flag skips that | ||
behavior and allows using the escape character. | ||
## Comparisons to other fnmatch/glob implementations | ||
@@ -192,0 +198,0 @@ |
34911
231