MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / renderedSourceFiles

Function renderedSourceFiles

__tests__/explore-result-count.test.ts:27–34  ·  view source on GitHub ↗

Files explore rendered as ``**` `**`` source sections (issue #778: bold * labels, not ATX headings).

(text: string)

Source from the content-addressed store, hash-verified

25/** Files explore rendered as ``**`<path>`**`` source sections (issue #778: bold
26 * labels, not ATX headings). */
27function renderedSourceFiles(text: string): string[] {
28 const out: string[] = [];
29 for (const line of text.split('\n')) {
30 const m = line.match(/^\*\*`(.+?)`\*\*/);
31 if (m) out.push(m[1].trim());
32 }
33 return out;
34}
35
36function headerFileCount(text: string): number | null {
37 const m = text.match(/Found \d+ symbols? across (\d+) files?\./);

Callers 1

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected