MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / escapeRegExp

Function escapeRegExp

src/directory.ts:407–409  ·  view source on GitHub ↗
(s: string)

Source from the content-addressed store, hash-verified

405}
406
407function escapeRegExp(s: string): string {
408 return s.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
409}
410
411/**
412 * Indexed sub-project roots beneath `root` (bounded breadth-first scan). For

Callers 1

planFrontloadFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected