MCPcopy Create free account
hub / github.com/PatrickSys/codebase-context / matchesPattern

Function matchesPattern

src/eval/harness.ts:26–29  ·  view source on GitHub ↗
(filePath: string, patterns: string[])

Source from the content-addressed store, hash-verified

24}
25
26function matchesPattern(filePath: string, patterns: string[]): boolean {
27 const normalized = normalizePath(filePath);
28 return patterns.some((pattern) => normalized.includes(pattern.toLowerCase()));
29}
30
31function dedupeByFile(results: SearchResult[]): SearchResult[] {
32 const seen = new Set<string>();

Callers 1

evaluateQueryFunction · 0.85

Calls 1

normalizePathFunction · 0.70

Tested by

no test coverage detected