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(/\.$/, ''); }