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

Function recordMatches

src/sidebarApps/searchInFiles/indexWorker.js:276–278  ·  view source on GitHub ↗
(record, query)

Source from the content-addressed store, hash-verified

274}
275
276function recordMatches(record, query) {
277 return (record.searchText || "").includes(query.needle);
278}
279
280function getCacheQuery(search, { regExp = false, caseSensitive = false } = {}) {
281 if (regExp || caseSensitive || !search) return null;

Callers 1

getCandidateUrlsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected