MCPcopy Index your code
hub / github.com/codeaashu/claude-code / tokenize

Function tokenize

web/lib/search/highlighter.ts:56–61  ·  view source on GitHub ↗
(query: string)

Source from the content-addressed store, hash-verified

54
55/** Tokenise a query string into non-empty lowercase words. */
56export function tokenize(query: string): string[] {
57 return query
58 .trim()
59 .split(/\s+/)
60 .filter((t) => t.length > 0);
61}
62
63function escapeHtml(text: string): string {
64 return text

Callers 3

clientSearchFunction · 0.90
highlightFunction · 0.70
excerptFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected