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