1
mirror of https://github.com/monero-project/monero-gui synced 2025-02-26 17:38:09 +01:00

Utils: fix removeTrailingZeros regression

This commit is contained in:
xiphon 2021-01-16 03:31:23 +00:00
parent 3ca5f10fa8
commit 45b5150487

View File

@ -113,5 +113,5 @@ function capitalize(s){
}
function removeTrailingZeros(value) {
return (value + '').replace(/\.?0*$/, '');
return (value + '').replace(/(\.\d*?)0+$/, '$1').replace(/\.$/, '');
}