MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / patternFacts

Function patternFacts

graph-ui/src/browser-ai/file-facts.ts:127–130  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

125}
126
127function patternFacts(text: string): string[] {
128 const patterns = rows(text).map(line => line.trim()).filter(line => line && !line.startsWith('#'));
129 return patterns.length ? [words.patterns(patterns.length, patterns.slice(0, LISTED).map(quote))] : [];
130}
131
132function xmlFacts(text: string): string[] {
133 const root = /<([A-Za-z_][\w:.-]*)[\s>/]/.exec(text.replace(/<\?[\s\S]*?\?>|<!--[\s\S]*?-->|<![^>]*>/g, ''));

Callers 1

structureFactsFunction · 0.85

Calls 1

rowsFunction · 0.70

Tested by

no test coverage detected