(str?: string | null)
| 31 | } |
| 32 | |
| 33 | export function normalize(str?: string | null) { |
| 34 | if (!str) return ''; |
| 35 | return str.replace(/[^\p{L}\p{N}\p{Z}$+<=>^`|~]/gu, ' ').replace(/\s+/g, ' '); |
| 36 | } |
| 37 | |
| 38 | export function pad(string: string, length: number) { |
| 39 | if (string.length < length) { |
no outgoing calls
no test coverage detected