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

Function escapeRegex

src/tools/semantic-identifiers.ts:112–114  ·  view source on GitHub ↗
(input: string)

Source from the content-addressed store, hash-verified

110}
111
112function escapeRegex(input: string): string {
113 return input.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
114}
115
116function getKeywordCoverage(queryTerms: Set<string>, input: string): number {
117 if (queryTerms.size === 0) return 0;

Callers 2

isDefinitionLineFunction · 0.70
rankCallSitesFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected