From 5923c04f2ebd3c39614ed58a79fbc03a17a857bb Mon Sep 17 00:00:00 2001 From: john Date: Wed, 20 Jun 2018 11:59:27 +0800 Subject: [PATCH] Roo/util/Format.js --- Roo/util/Format.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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.. -- 2.39.2