minimatch 5.0.0 → 5.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -0
- package/lib/path.js +4 -0
- package/minimatch.js +1 -3
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -236,3 +236,9 @@ other interpretation of the glob pattern. Thus, a pattern like
|
|
|
236
236
|
`+(a|{b),c)}`, which would not be valid in bash or zsh, is expanded
|
|
237
237
|
**first** into the set of `+(a|b)` and `+(a|c)`, and those patterns are
|
|
238
238
|
checked for validity. Since those two are valid, matching proceeds.
|
|
239
|
+
|
|
240
|
+
Note that `fnmatch(3)` in libc is an extremely naive string comparison
|
|
241
|
+
matcher, which does not do anything special for slashes. This library is
|
|
242
|
+
designed to be used in glob searching and file walkers, and so it does do
|
|
243
|
+
special things with `/`. Thus, `foo*` will not match `foo/bar` in this
|
|
244
|
+
library, even though it would in `fnmatch(3)`.
|
package/lib/path.js
ADDED
package/minimatch.js
CHANGED
|
@@ -11,9 +11,7 @@ const minimatch = module.exports = (p, pattern, options = {}) => {
|
|
|
11
11
|
|
|
12
12
|
module.exports = minimatch
|
|
13
13
|
|
|
14
|
-
const path =
|
|
15
|
-
sep: '/'
|
|
16
|
-
}
|
|
14
|
+
const path = require('./lib/path.js')
|
|
17
15
|
minimatch.sep = path.sep
|
|
18
16
|
|
|
19
17
|
const GLOBSTAR = Symbol('globstar **')
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"author": "Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me)",
|
|
3
3
|
"name": "minimatch",
|
|
4
4
|
"description": "a glob matcher in javascript",
|
|
5
|
-
"version": "5.0.
|
|
5
|
+
"version": "5.0.1",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
8
|
"url": "git://github.com/isaacs/minimatch.git"
|
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
},
|
|
27
27
|
"license": "ISC",
|
|
28
28
|
"files": [
|
|
29
|
-
"minimatch.js"
|
|
29
|
+
"minimatch.js",
|
|
30
|
+
"lib"
|
|
30
31
|
]
|
|
31
32
|
}
|