chore(deps): update dependency glob to v11.1.0
All checks were successful
Lint / pre-commit Linting (push) Successful in 1m23s
All checks were successful
Lint / pre-commit Linting (push) Successful in 1m23s
This commit is contained in:
9
node_modules/minimatch/dist/commonjs/ast.js
generated
vendored
9
node_modules/minimatch/dist/commonjs/ast.js
generated
vendored
@@ -415,7 +415,9 @@ class AST {
|
||||
if (this.#root === this)
|
||||
this.#fillNegs();
|
||||
if (!this.type) {
|
||||
const noEmpty = this.isStart() && this.isEnd();
|
||||
const noEmpty = this.isStart() &&
|
||||
this.isEnd() &&
|
||||
!this.#parts.some(s => typeof s !== 'string');
|
||||
const src = this.#parts
|
||||
.map(p => {
|
||||
const [re, _, hasMagic, uflag] = typeof p === 'string'
|
||||
@@ -571,10 +573,7 @@ class AST {
|
||||
}
|
||||
}
|
||||
if (c === '*') {
|
||||
if (noEmpty && glob === '*')
|
||||
re += starNoEmpty;
|
||||
else
|
||||
re += star;
|
||||
re += noEmpty && glob === '*' ? starNoEmpty : star;
|
||||
hasMagic = true;
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user