(input: string)
| 337 | }; |
| 338 | |
| 339 | const tokenizeSegment = (input: string): ReadonlyArray<string> => |
| 340 | input |
| 341 | .replace(/([a-z0-9])([A-Z])/g, "$1 $2") |
| 342 | .replace(/[._-]+/g, " ") |
| 343 | .trim() |
| 344 | .toLowerCase() |
| 345 | .split(/\s+/) |
| 346 | .filter((token) => token.length > 0); |
| 347 | |
| 348 | const tokenVariants = (input: string): ReadonlyArray<string> => { |
| 349 | const token = input.toLowerCase(); |
no test coverage detected