MCPcopy Index your code
hub / github.com/forloopcodes/contextplus / escapeRegex

Function escapeRegex

src/tools/blast-radius.ts:75–77  ·  view source on GitHub ↗
(str: string)

Source from the content-addressed store, hash-verified

73}
74
75function escapeRegex(str: string): string {
76 return str.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
77}
78
79function isDefinitionLine(line: string, symbolName: string): boolean {
80 const definitionPatterns = [

Callers 2

getBlastRadiusFunction · 0.70
isDefinitionLineFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected