minimatch 5.1.0 → 5.1.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.
Files changed (2) hide show
  1. package/minimatch.js +4 -4
  2. package/package.json +2 -2
package/minimatch.js CHANGED
@@ -243,7 +243,7 @@ class Minimatch {
243
243
  negateOffset++
244
244
  }
245
245
 
246
- if (negateOffset) this.pattern = pattern.substr(negateOffset)
246
+ if (negateOffset) this.pattern = pattern.slice(negateOffset)
247
247
  this.negate = negate
248
248
  }
249
249
 
@@ -619,7 +619,7 @@ class Minimatch {
619
619
  } catch (er) {
620
620
  // not a valid class!
621
621
  sp = this.parse(cs, SUBPARSE)
622
- re = re.substr(0, reClassStart) + '\\[' + sp[0] + '\\]'
622
+ re = re.substring(0, reClassStart) + '\\[' + sp[0] + '\\]'
623
623
  hasMagic = hasMagic || sp[1]
624
624
  inClass = false
625
625
  continue
@@ -652,9 +652,9 @@ class Minimatch {
652
652
  // this is a huge pita. We now have to re-walk
653
653
  // the contents of the would-be class to re-translate
654
654
  // any characters that were passed through as-is
655
- cs = pattern.substr(classStart + 1)
655
+ cs = pattern.slice(classStart + 1)
656
656
  sp = this.parse(cs, SUBPARSE)
657
- re = re.substr(0, reClassStart) + '\\[' + sp[0]
657
+ re = re.substring(0, reClassStart) + '\\[' + sp[0]
658
658
  hasMagic = hasMagic || sp[1]
659
659
  }
660
660
 
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.1.0",
5
+ "version": "5.1.1",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "git://github.com/isaacs/minimatch.git"
@@ -22,7 +22,7 @@
22
22
  "brace-expansion": "^2.0.1"
23
23
  },
24
24
  "devDependencies": {
25
- "tap": "^15.1.6"
25
+ "tap": "^16.3.2"
26
26
  },
27
27
  "license": "ISC",
28
28
  "files": [