mirror of
https://github.com/monero-project/monero-gui.git
synced 2025-01-08 10:52:04 +02:00
Utils: fix removeTrailingZeros regression
This commit is contained in:
parent
3ca5f10fa8
commit
45b5150487
@ -113,5 +113,5 @@ function capitalize(s){
|
||||
}
|
||||
|
||||
function removeTrailingZeros(value) {
|
||||
return (value + '').replace(/\.?0*$/, '');
|
||||
return (value + '').replace(/(\.\d*?)0+$/, '$1').replace(/\.$/, '');
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user