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

Function escapeRegExp

src/resolution/cpp-template-instantiations.ts:333–333  ·  view source on GitHub ↗
(s: string)

Source from the content-addressed store, hash-verified

331}
332
333const escapeRegExp = (s: string): string => s.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
334
335/** A written template argument as it compares: spaced only between words. */
336function argumentKey(arg: string): string {

Callers 3

specializationOfFunction · 0.70
outOfLineTemplatesMethod · 0.70
deducedMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected