10L now converts to 십리터

This commit is contained in:
kimpure 2026-05-21 15:55:50 +00:00
parent 02b8a27c28
commit 079c621fe6
No known key found for this signature in database

View file

@ -273,7 +273,7 @@ export function saferKorean(input: string): string {
mod = SIPrefix[mod.toLowerCase() as keyof typeof SIPrefix]; mod = SIPrefix[mod.toLowerCase() as keyof typeof SIPrefix];
return `${num} ${mod}바이트 `; return `${num} ${mod}바이트 `;
}) })
.replace(/([\d,]+)([m]?)l\s/g, (_, num: string, mod: string) => { .replace(/([\d,]+)([m]?)[lL]\s/g, (_, num: string, mod: string) => {
// 10l => 십리터 // 10l => 십리터
num = IntegerKorean.convertFromString(num); num = IntegerKorean.convertFromString(num);
mod = LiterPrefix[mod as keyof typeof LiterPrefix]; mod = LiterPrefix[mod as keyof typeof LiterPrefix];