diff --git a/noname/get/index.js b/noname/get/index.js index b349c2607..522e1fcc9 100644 --- a/noname/get/index.js +++ b/noname/get/index.js @@ -2251,7 +2251,11 @@ export class Get extends Uninstantable { } numStr = numStr.replace(/(?=(\d{4})+$)/g, ',').split(',').filter(Boolean); - const handleZero = str => str.replace(/零{2,}/g, '零').replace(/(?<=.+)零+$/g, ''); + const handleZero = str => { + let result = str.replace(/零{2,}/g, '零'); + if (result.length > 1) replace(/零+$/g, ''); + return result; + }; const _transform = str => { if (str === '2' && !ordinal) return '两'; let result = '';