mirror of
https://github.com/monero-project/monero-gui.git
synced 2025-01-26 20:45:54 +00:00
Merge pull request #3311
45b5150
Utils: fix removeTrailingZeros regression (xiphon)
This commit is contained in:
commit
2a44f95f16
1 changed files with 1 additions and 1 deletions
|
@ -113,5 +113,5 @@ function capitalize(s){
|
||||||
}
|
}
|
||||||
|
|
||||||
function removeTrailingZeros(value) {
|
function removeTrailingZeros(value) {
|
||||||
return (value + '').replace(/\.?0*$/, '');
|
return (value + '').replace(/(\.\d*?)0+$/, '$1').replace(/\.$/, '');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue