get.cnNumber十位数字1读法更改

This commit is contained in:
kuangshen04 2024-03-16 02:01:55 +08:00
parent 8bd717d20a
commit 06165bcfd4
1 changed files with 1 additions and 1 deletions

View File

@ -2273,7 +2273,7 @@ export class Get extends Uninstantable {
let char = chars[+part];
let unit = units[i];
if (char === '零') unit = '';
else if (char === '一' && i === 1) char = '';
else if (char === '一' && i === 1 && str.length === 2) char = '';
else if (char === '二' && i > 1 && !ordinal) char = '两';
result = char + unit + result;
}