minimatch
Advanced tools
Comparing version 5.1.0 to 5.1.1
@@ -246,3 +246,3 @@ const minimatch = module.exports = (p, pattern, options = {}) => { | ||
if (negateOffset) this.pattern = pattern.substr(negateOffset) | ||
if (negateOffset) this.pattern = pattern.slice(negateOffset) | ||
this.negate = negate | ||
@@ -623,3 +623,3 @@ } | ||
sp = this.parse(cs, SUBPARSE) | ||
re = re.substr(0, reClassStart) + '\\[' + sp[0] + '\\]' | ||
re = re.substring(0, reClassStart) + '\\[' + sp[0] + '\\]' | ||
hasMagic = hasMagic || sp[1] | ||
@@ -657,5 +657,5 @@ inClass = false | ||
// any characters that were passed through as-is | ||
cs = pattern.substr(classStart + 1) | ||
cs = pattern.slice(classStart + 1) | ||
sp = this.parse(cs, SUBPARSE) | ||
re = re.substr(0, reClassStart) + '\\[' + sp[0] | ||
re = re.substring(0, reClassStart) + '\\[' + sp[0] | ||
hasMagic = hasMagic || sp[1] | ||
@@ -662,0 +662,0 @@ } |
@@ -5,3 +5,3 @@ { | ||
"description": "a glob matcher in javascript", | ||
"version": "5.1.0", | ||
"version": "5.1.1", | ||
"repository": { | ||
@@ -26,3 +26,3 @@ "type": "git", | ||
"devDependencies": { | ||
"tap": "^15.1.6" | ||
"tap": "^16.3.2" | ||
}, | ||
@@ -29,0 +29,0 @@ "license": "ISC", |
37478