minimatch 5.1.4 → 5.1.5
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 +2 -1
- package/package.json +4 -1
package/minimatch.js
CHANGED
|
@@ -722,7 +722,8 @@ class Minimatch {
|
|
|
722
722
|
// Handle nested stuff like *(*.js|!(*.json)), where open parens
|
|
723
723
|
// mean that we should *not* include the ) in the bit that is considered
|
|
724
724
|
// "after" the negated section.
|
|
725
|
-
const
|
|
725
|
+
const closeParensBefore = nlBefore.split(')').length
|
|
726
|
+
const openParensBefore = nlBefore.split('(').length - closeParensBefore
|
|
726
727
|
let cleanAfter = nlAfter
|
|
727
728
|
for (let i = 0; i < openParensBefore; i++) {
|
|
728
729
|
cleanAfter = cleanAfter.replace(/\)[+*?]?/, '')
|
package/package.json
CHANGED
|
@@ -2,7 +2,10 @@
|
|
|
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
|
-
"
|
|
5
|
+
"publishConfig": {
|
|
6
|
+
"tag": "legacy-v5"
|
|
7
|
+
},
|
|
8
|
+
"version": "5.1.5",
|
|
6
9
|
"repository": {
|
|
7
10
|
"type": "git",
|
|
8
11
|
"url": "git://github.com/isaacs/minimatch.git"
|