minimatch 3.1.1 → 3.1.3
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/minimatch.js +5 -0
- package/package.json +2 -2
package/minimatch.js
CHANGED
|
@@ -134,6 +134,8 @@ function Minimatch (pattern, options) {
|
|
|
134
134
|
|
|
135
135
|
if (!options) options = {}
|
|
136
136
|
|
|
137
|
+
pattern = pattern.trim()
|
|
138
|
+
|
|
137
139
|
// windows support: need to use /, not \
|
|
138
140
|
if (!options.allowWindowsEscape && path.sep !== '/') {
|
|
139
141
|
pattern = pattern.split(path.sep).join('/')
|
|
@@ -388,6 +390,9 @@ function parse (pattern, isSub) {
|
|
|
388
390
|
continue
|
|
389
391
|
}
|
|
390
392
|
|
|
393
|
+
// coalesce consecutive non-globstar * characters
|
|
394
|
+
if (c === '*' && stateChar === '*') continue
|
|
395
|
+
|
|
391
396
|
// if we already have a stateChar, then it means
|
|
392
397
|
// that there was something like ** or +? in there.
|
|
393
398
|
// Handle the stateChar, then proceed with this one.
|
package/package.json
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
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": "3.1.
|
|
5
|
+
"version": "3.1.3",
|
|
6
6
|
"publishConfig": {
|
|
7
|
-
"tag": "v3
|
|
7
|
+
"tag": "legacy-v3"
|
|
8
8
|
},
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|