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

Function escapeRegex

src/resolution/frameworks/next-proxy.ts:184–184  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

182const FILE_WITH_EXTENSION = '.*\\.[^/]*$';
183
184const escapeRegex = (text: string): string => text.replace(/[.*+?^${}()|[\]\\/]/g, '\\$&');
185
186/** The offset of the `)` closing the `(` at `open`, or -1. */
187function closingParen(s: string, open: number): number {

Callers 2

readExclusionFunction · 0.70
compileMatcherFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected