diff --git a/js/Utils.js b/js/Utils.js index 17ba38b1..2ad603ef 100644 --- a/js/Utils.js +++ b/js/Utils.js @@ -113,5 +113,5 @@ function capitalize(s){ } function removeTrailingZeros(value) { - return (value + '').replace(/(\.\d*[1-9])0+$/, '$1'); + return (value + '').replace(/\.?0*$/, ''); }