MCPcopy Index your code
hub / github.com/nodejs/node / isEnd

Method isEnd

deps/minimatch/index.js:579–590  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

577 return true;
578 }
579 isEnd() {
580 if (this.#root === this)
581 return true;
582 if (this.#parent?.type === "!")
583 return true;
584 if (!this.#parent?.isEnd())
585 return false;
586 if (!this.type)
587 return this.#parent?.isEnd();
588 const pl = this.#parent ? this.#parent.#parts.length : 0;
589 return this.#parentIndex === pl - 1;
590 }
591 copyIn(part) {
592 if (typeof part === "string")
593 this.push(part);

Callers 3

toJSONMethod · 0.80
toRegExpSourceMethod · 0.80
#partsToRegExpMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected