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

Function formatLineRange

src/tools/semantic-identifiers.ts:108–110  ·  view source on GitHub ↗
(line: number, endLine: number)

Source from the content-addressed store, hash-verified

106}
107
108function formatLineRange(line: number, endLine: number): string {
109 return endLine > line ? `L${line}-L${endLine}` : `L${line}`;
110}
111
112function escapeRegex(input: string): string {
113 return input.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");

Callers 1

semanticIdentifierSearchFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected