MCPcopy Create free account
hub / github.com/codeaashu/claude-code / tokenize

Function tokenize

web/lib/workers/search.worker.ts:40–45  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

38const entries: SearchEntry[] = [];
39
40function tokenize(text: string): string[] {
41 return text
42 .toLowerCase()
43 .split(/\W+/)
44 .filter((t) => t.length >= 2);
45}
46
47function addEntry(entry: SearchEntry): void {
48 const idx = entries.length;

Callers 2

addEntryFunction · 0.70
queryFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected