MCPcopy Create free account
hub / github.com/freecodexyz/free-code / stripLineNumberPrefix

Function stripLineNumberPrefix

src/utils/file.ts:325–328  ·  view source on GitHub ↗
(line: string)

Source from the content-addressed store, hash-verified

323 * line. Co-located so format changes here and in addLineNumbers stay in sync.
324 */
325export function stripLineNumberPrefix(line: string): string {
326 const match = line.match(/^\s*\d+[\u2192\t](.*)$/)
327 return match?.[1] ?? line
328}
329
330/**
331 * Checks if a directory is empty.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected