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

Function escapeRegExp

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

Source from the content-addressed store, hash-verified

406}
407
408function escapeRegExp(s: string): string {
409 return s.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
410}
411
412/**
413 * 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