MCPcopy Create free account
hub / github.com/backnotprop/plannotator / stripLineRef

Function stripLineRef

packages/shared/code-file.ts:29–31  ·  view source on GitHub ↗
(input: string)

Source from the content-addressed store, hash-verified

27}
28
29export function stripLineRef(input: string): string {
30 return input.replace(/#.*$/, '').replace(LINE_SUFFIX_RE, '');
31}
32
33export function isCodeFilePath(input: string): boolean {
34 if (!isPlausibleCodeFilePath(input)) return false;

Callers 1

isCodeFilePathFunction · 0.85

Calls 1

replaceMethod · 0.80

Tested by

no test coverage detected