Comparing version 7.2.0 to 7.2.3
@@ -113,2 +113,4 @@ exports.setopts = setopts | ||
options.nocomment = true | ||
// always treat \ in patterns as escapes, not path separators | ||
options.allowWindowsEscape = false | ||
@@ -115,0 +117,0 @@ self.minimatch = new Minimatch(pattern, options) |
@@ -345,3 +345,6 @@ // Approach: | ||
read = '.' | ||
else if (isAbsolute(prefix) || isAbsolute(pattern.join('/'))) { | ||
else if (isAbsolute(prefix) || | ||
isAbsolute(pattern.map(function (p) { | ||
return typeof p === 'string' ? p : '[*]' | ||
}).join('/'))) { | ||
if (!prefix || !isAbsolute(prefix)) | ||
@@ -348,0 +351,0 @@ prefix = '/' + prefix |
@@ -5,3 +5,6 @@ { | ||
"description": "a little globber", | ||
"version": "7.2.0", | ||
"version": "7.2.3", | ||
"publishConfig": { | ||
"tag": "v7-legacy" | ||
}, | ||
"repository": { | ||
@@ -24,3 +27,3 @@ "type": "git", | ||
"inherits": "2", | ||
"minimatch": "^3.0.4", | ||
"minimatch": "^3.1.1", | ||
"once": "^1.3.0", | ||
@@ -27,0 +30,0 @@ "path-is-absolute": "^1.0.0" |
@@ -51,3 +51,3 @@ module.exports = globSync | ||
GlobSync.prototype._finish = function () { | ||
assert(this instanceof GlobSync) | ||
assert.ok(this instanceof GlobSync) | ||
if (this.realpath) { | ||
@@ -76,3 +76,3 @@ var self = this | ||
GlobSync.prototype._process = function (pattern, index, inGlobStar) { | ||
assert(this instanceof GlobSync) | ||
assert.ok(this instanceof GlobSync) | ||
@@ -114,3 +114,6 @@ // Get the first [n] parts of pattern that are all strings. | ||
read = '.' | ||
else if (isAbsolute(prefix) || isAbsolute(pattern.join('/'))) { | ||
else if (isAbsolute(prefix) || | ||
isAbsolute(pattern.map(function (p) { | ||
return typeof p === 'string' ? p : '[*]' | ||
}).join('/'))) { | ||
if (!prefix || !isAbsolute(prefix)) | ||
@@ -117,0 +120,0 @@ prefix = '/' + prefix |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
55064
1247
Updatedminimatch@^3.1.1