(dot)
| 977 | this.#toString = void 0; |
| 978 | } |
| 979 | #partsToRegExp(dot) { |
| 980 | return this.#parts.map((p) => { |
| 981 | if (typeof p === "string") { |
| 982 | throw new Error("string type in extglob ast??"); |
| 983 | } |
| 984 | const [re, _, _hasMagic, uflag] = p.toRegExpSource(dot); |
| 985 | this.#uflag = this.#uflag || uflag; |
| 986 | return re; |
| 987 | }).filter((p) => !(this.isStart() && this.isEnd()) || !!p).join("|"); |
| 988 | } |
| 989 | static #parseGlob(glob, hasMagic, noEmpty = false) { |
| 990 | let escaping = false; |
| 991 | let re = ""; |
no test coverage detected