eastasianwidth
eastasianwidth copied to clipboard
Incorrect width for some letters with diacritic marks
const eaw = require("eastasianwidth")
eaw.characterLength("ì") // 2
This should be length 1 instead of 2.
This is the same issue here
System.out.println(UCharacter.getIntPropertyValue('ì', UProperty.EAST_ASIAN_WIDTH)); // UCharacter.EastAsianWidth.AMBIGUOUS;