MCPcopy Create free account
hub / github.com/TeleBoxOrg/TeleBox_Plugins / normalizeSearchTerm

Method normalizeSearchTerm

search/search.ts:658–660  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

656 }
657
658 private normalizeSearchTerm(text: string): string {
659 return text.toLowerCase().replace(/[-_\s\.\|\\\/#]+/g, ' ').replace(/\s+/g, ' ').trim();
660 }
661
662 private fuzzyMatch(text: string, query: string): boolean {
663 if (text.includes(query)) return true;

Callers 3

findAndSendVideoMethod · 0.95
getScoreMethod · 0.95
isMessageMatchingMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected