chore(deps): update dependency glob to v11.1.0
All checks were successful
Lint / pre-commit Linting (push) Successful in 1m23s

This commit is contained in:
2025-12-21 13:05:54 +00:00
parent 25e4ba9f71
commit 274a8109e6
98 changed files with 2176 additions and 3010 deletions

View File

@@ -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;
}