minimatch 4.2.1 → 4.2.2

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