From: john Date: Wed, 20 Jun 2018 03:59:27 +0000 (+0800) Subject: Roo/util/Format.js X-Git-Url: http://git.roojs.org/?a=commitdiff_plain;h=5923c04f2ebd3c39614ed58a79fbc03a17a857bb;p=roojs1 Roo/util/Format.js --- diff --git a/Roo/util/Format.js b/Roo/util/Format.js index 25a1d4c177..5092b2f062 100644 --- a/Roo/util/Format.js +++ b/Roo/util/Format.js @@ -193,10 +193,12 @@ Roo.util.Format = function(){ var r = /(\d+)(\d{3})/; // add comma's - while (r.test(whole)) { - whole = whole.replace(r, '$1' + thousandsDelimiter + '$2'); - } + if(thousandsDelimiter.length != 0) { + while (r.test(whole)) { + whole = whole.replace(r, '$1' + thousandsDelimiter + '$2'); + } + } var sub = ps[1] ? // has decimals..