1
mirror of https://github.com/monero-project/monero-gui synced 2025-03-29 02:53:05 +01:00

Merge pull request

841d0e01 Utils: removeTrailingZeros - handle .0* decimal part (i.e. 1.00000) (xiphon)
This commit is contained in:
Alexander Blair 2020-12-10 18:01:38 -08:00
commit e359c60f00
No known key found for this signature in database
GPG Key ID: C64552D877C32479

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