MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / normalizeFullWidthDigits

Function normalizeFullWidthDigits

source code/utils/stringUtils.ts:74–78  ·  view source on GitHub ↗
(input: string)

Source from the content-addressed store, hash-verified

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

Callers 4

useMultiSelectStateFunction · 0.85
useSelectInputFunction · 0.85
useDebouncedDigitInputFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected