mirror of
https://github.com/Azure/setup-helm.git
synced 2025-07-17 11:20:42 +00:00
committed by
GitHub
parent
20d2b4f98d
commit
e4f3964f67
9
node_modules/glob/sync.js
generated
vendored
9
node_modules/glob/sync.js
generated
vendored
@ -48,7 +48,7 @@ function GlobSync (pattern, options) {
|
||||
}
|
||||
|
||||
GlobSync.prototype._finish = function () {
|
||||
assert(this instanceof GlobSync)
|
||||
assert.ok(this instanceof GlobSync)
|
||||
if (this.realpath) {
|
||||
var self = this
|
||||
this.matches.forEach(function (matchset, index) {
|
||||
@ -72,7 +72,7 @@ GlobSync.prototype._finish = function () {
|
||||
|
||||
|
||||
GlobSync.prototype._process = function (pattern, index, inGlobStar) {
|
||||
assert(this instanceof GlobSync)
|
||||
assert.ok(this instanceof GlobSync)
|
||||
|
||||
// Get the first [n] parts of pattern that are all strings.
|
||||
var n = 0
|
||||
@ -109,7 +109,10 @@ GlobSync.prototype._process = function (pattern, index, inGlobStar) {
|
||||
var read
|
||||
if (prefix === null)
|
||||
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))
|
||||
prefix = '/' + prefix
|
||||
read = prefix
|
||||
|
Reference in New Issue
Block a user