MCPcopy Index your code
hub / github.com/codeaashu/claude-code / normalizeFullWidthDigits

Function normalizeFullWidthDigits

src/utils/stringUtils.ts:72–76  ·  view source on GitHub ↗
(input: string)

Source from the content-addressed store, hash-verified

70 * Useful for accepting input from Japanese/CJK IMEs.
71 */
72export 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.

Callers 4

useMultiSelectStateFunction · 0.85
useSelectInputFunction · 0.85
useDebouncedDigitInputFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected