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

Function getCacheQuery

src/sidebarApps/searchInFiles/indexWorker.js:280–283  ·  view source on GitHub ↗
(search, { regExp = false, caseSensitive = false } = {})

Source from the content-addressed store, hash-verified

278}
279
280function getCacheQuery(search, { regExp = false, caseSensitive = false } = {}) {
281 if (regExp || caseSensitive || !search) return null;
282 return { needle: search.toLocaleLowerCase() };
283}
284
285async function getExistingRecords(db) {
286 const records = await requestToPromise(

Callers 1

queryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected