mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-12-22 19:49:34 +00:00
Merge pull request #3266
841d0e01
Utils: removeTrailingZeros - handle .0* decimal part (i.e. 1.00000) (xiphon)
This commit is contained in:
commit
e359c60f00
1 changed files with 1 additions and 1 deletions
|
@ -113,5 +113,5 @@ function capitalize(s){
|
|||
}
|
||||
|
||||
function removeTrailingZeros(value) {
|
||||
return (value + '').replace(/(\.\d*[1-9])0+$/, '$1');
|
||||
return (value + '').replace(/\.?0*$/, '');
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue