You've already forked monero-gui
mirror of
https://github.com/monero-project/monero-gui
synced 2025-08-23 07:47:14 +02:00
Utils: fix removeTrailingZeros regression
This commit is contained in:
@ -113,5 +113,5 @@ function capitalize(s){
|
||||
}
|
||||
|
||||
function removeTrailingZeros(value) {
|
||||
return (value + '').replace(/\.?0*$/, '');
|
||||
return (value + '').replace(/(\.\d*?)0+$/, '$1').replace(/\.$/, '');
|
||||
}
|
||||
|
Reference in New Issue
Block a user