MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / countFormattedMatches

Function countFormattedMatches

common/src/util/format-code-search.ts:110–115  ·  view source on GitHub ↗
(lines: string[])

Source from the content-addressed store, hash-verified

108}
109
110function countFormattedMatches(lines: string[]): number {
111 return lines.filter((line) => {
112 const parsedLine = parseRipgrepLine(line)
113 return parsedLine && !parsedLine.isContext
114 }).length
115}

Callers 1

formatCodeSearchOutputFunction · 0.85

Calls 1

parseRipgrepLineFunction · 0.85

Tested by

no test coverage detected