MCPcopy Create free account
hub / github.com/claude-code-best/claude-code / parseRipgrepLine

Function parseRipgrepLine

src/components/GlobalSearchDialog.tsx:276–283  ·  view source on GitHub ↗
(line: string)

Source from the content-addressed store, hash-verified

274 * @internal exported for testing
275 */
276export function parseRipgrepLine(line: string): Match | null {
277 const m = /^(.*?):(\d+):(.*)$/.exec(line);
278 if (!m) return null;
279 const [, file, lineStr, text] = m;
280 const lineNum = Number(lineStr);
281 if (!file || !Number.isFinite(lineNum)) return null;
282 return { file, line: lineNum, text: text ?? '' };
283}

Callers 1

handleQueryChangeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected