移除字符串前的'0'方法调整

master
FCD 3 months ago
parent 9fb25f5966
commit c86f213615

@ -1,3 +1,3 @@
export function removeLeadingZeros(str: string): string {
return String(Number(str));
return str.replace(/^0+/, '');
}

Loading…
Cancel
Save