diff --git a/src/utils/tool.ts b/src/utils/tool.ts index 93ffd4d..def8261 100644 --- a/src/utils/tool.ts +++ b/src/utils/tool.ts @@ -1,3 +1,3 @@ export function removeLeadingZeros(str: string): string { - return String(Number(str)); + return str.replace(/^0+/, ''); }