(value: string)
| 106 | } |
| 107 | |
| 108 | function normalizeSearchText(value: string) { |
| 109 | return value.toLowerCase().replace(/[^a-z0-9]+/g, " ").trim(); |
| 110 | } |
| 111 | |
| 112 | function searchFields(item: SearchIndexItem) { |
| 113 | return [item.title, item.id, ...item.tokens].filter(Boolean); |
no outgoing calls
no test coverage detected