diff options
| author | luigi1111 <luigi1111w@gmail.com> | 2021-01-20 22:43:27 -0500 |
|---|---|---|
| committer | luigi1111 <luigi1111w@gmail.com> | 2021-01-20 22:43:27 -0500 |
| commit | 2a44f95f168066532fb39d289c8518dfbdd91b19 (patch) | |
| tree | 32a64e5d4546452f43e4eb79c9f01181a9e41bca | |
| parent | dc0ce27963790a1239ffdd871b2d339974cbdaee (diff) | |
| parent | 45b515048734c37fea70d2ff940a3a94ba985f0a (diff) | |
| download | monzero-gui-2a44f95f168066532fb39d289c8518dfbdd91b19.tar.gz monzero-gui-2a44f95f168066532fb39d289c8518dfbdd91b19.tar.xz monzero-gui-2a44f95f168066532fb39d289c8518dfbdd91b19.zip | |
Merge pull request #3311
45b5150 Utils: fix removeTrailingZeros regression (xiphon)
| -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(/\.$/, ''); } |
