minimatch
Advanced tools
Comparing version 5.0.0 to 5.0.1
@@ -14,5 +14,3 @@ const minimatch = module.exports = (p, pattern, options = {}) => { | ||
const path = (() => { try { return require('path') } catch (e) {}})() || { | ||
sep: '/' | ||
} | ||
const path = require('./lib/path.js') | ||
minimatch.sep = path.sep | ||
@@ -19,0 +17,0 @@ |
@@ -5,3 +5,3 @@ { | ||
"description": "a glob matcher in javascript", | ||
"version": "5.0.0", | ||
"version": "5.0.1", | ||
"repository": { | ||
@@ -30,4 +30,5 @@ "type": "git", | ||
"files": [ | ||
"minimatch.js" | ||
"minimatch.js", | ||
"lib" | ||
] | ||
} |
@@ -239,1 +239,7 @@ # minimatch | ||
checked for validity. Since those two are valid, matching proceeds. | ||
Note that `fnmatch(3)` in libc is an extremely naive string comparison | ||
matcher, which does not do anything special for slashes. This library is | ||
designed to be used in glob searching and file walkers, and so it does do | ||
special things with `/`. Thus, `foo*` will not match `foo/bar` in this | ||
library, even though it would in `fnmatch(3)`. |
36629
5
764
245