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