(input: string)
| 72 | * Useful for accepting input from Japanese/CJK IMEs. |
| 73 | */ |
| 74 | export function normalizeFullWidthDigits(input: string): string { |
| 75 | return input.replace(/[0-9]/g, ch => |
| 76 | String.fromCharCode(ch.charCodeAt(0) - 0xfee0), |
| 77 | ) |
| 78 | } |
| 79 | |
| 80 | /** |
| 81 | * Normalize full-width (zenkaku) space to half-width space. |
no outgoing calls
no test coverage detected