(str: string)
| 6 | */ |
| 7 | |
| 8 | export function normalizeIcons(str: string): string { |
| 9 | if (!str) { |
| 10 | return str; |
| 11 | } |
| 12 | |
| 13 | // Make sure to keep in sync with `jest-util/src/specialChars` |
| 14 | return str |
| 15 | .replaceAll(new RegExp('\u00D7', 'gu'), '\u2715') |
| 16 | .replaceAll(new RegExp('\u221A', 'gu'), '\u2713'); |
| 17 | } |
no outgoing calls