We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e5bee62 commit ad30a84Copy full SHA for ad30a84
packages/common/hangul/src/disassembleCompleteHangulCharacter.ts
@@ -27,8 +27,8 @@ export function disassembleCompleteHangulCharacter(
27
const firstIndex = Math.floor((hangulCode - lastIndex) / NUMBER_OF_JONGSUNG / NUMBER_OF_JUNGSUNG);
28
29
return {
30
- first: HANGUL_CHARACTERS_BY_FIRST_INDEX[firstIndex]!,
31
- middle: HANGUL_CHARACTERS_BY_MIDDLE_INDEX[middleIndex]!,
32
- last: HANGUL_CHARACTERS_BY_LAST_INDEX[lastIndex]!,
+ first: HANGUL_CHARACTERS_BY_FIRST_INDEX[firstIndex] ?? '',
+ middle: HANGUL_CHARACTERS_BY_MIDDLE_INDEX[middleIndex] ?? '',
+ last: HANGUL_CHARACTERS_BY_LAST_INDEX[lastIndex] ?? '',
33
};
34
}
0 commit comments