diff options
| author | xiphon <xiphon@protonmail.com> | 2021-01-16 03:31:23 +0000 |
|---|---|---|
| committer | xiphon <xiphon@protonmail.com> | 2021-01-16 03:31:23 +0000 |
| commit | 45b515048734c37fea70d2ff940a3a94ba985f0a (patch) | |
| tree | 57685a4d033e11c41071e650eb75d73ee3978179 /js/Utils.js | |
| parent | 3ca5f10fa8ce901a94188d4c76c5e5e8e8bf3ff2 (diff) | |
| download | monzero-gui-45b515048734c37fea70d2ff940a3a94ba985f0a.tar.gz monzero-gui-45b515048734c37fea70d2ff940a3a94ba985f0a.tar.xz monzero-gui-45b515048734c37fea70d2ff940a3a94ba985f0a.zip | |
Utils: fix removeTrailingZeros regression
Diffstat (limited to 'js/Utils.js')
| -rw-r--r-- | js/Utils.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/Utils.js b/js/Utils.js index 2ad603ef..61f4509b 100644 --- a/js/Utils.js +++ b/js/Utils.js @@ -113,5 +113,5 @@ function capitalize(s){ } function removeTrailingZeros(value) { - return (value + '').replace(/\.?0*$/, ''); + return (value + '').replace(/(\.\d*?)0+$/, '$1').replace(/\.$/, ''); } |
