(text: string)
| 276 | } |
| 277 | |
| 278 | export function normalize(text: string): string { |
| 279 | return text.replace(/\s+/g, ' ').trim() |
| 280 | } |
| 281 | |
| 282 | export function matches(textToMatch: string, matcher: string | RegExp): boolean { |
| 283 | if (matcher instanceof RegExp) { |
no outgoing calls