MCPcopy Index your code
hub / github.com/scriptscat/scriptcat / searchName

Method searchName

src/app/service/service_worker/script.ts:664–669  ·  view source on GitHub ↗
(keyword: string)

Source from the content-addressed store, hash-verified

662 const result: Partial<Record<string, string | boolean>> = { uuid };
663
664 const searchName = (keyword: string) => {
665 if (OPTION_CASE_INSENSITIVE) {
666 return stringMatching(script.name.toLowerCase(), keyword.toLowerCase());
667 }
668 return stringMatching(script.name, keyword);
669 };
670 const searchCode = (keyword: string) => {
671 let c = codeCache[script.uuid];
672 if (!c) {

Callers

nothing calls this directly

Calls 1

stringMatchingFunction · 0.90

Tested by

no test coverage detected