MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / match

Function match

src/sidebarApps/searchInFiles/worker.js:288–289  ·  view source on GitHub ↗
(pattern)

Source from the content-addressed store, hash-verified

286 if (!file.path) return false;
287 if (isBinaryFile(file)) return true;
288 const match = (pattern) =>
289 picomatch.isMatch(file.path, pattern, { matchBase: true });
290 return excludeFiles.some(match) || !includeFiles.some(match);
291 }
292

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected