X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=roojs-core-debug.js;fp=roojs-core-debug.js;h=eb23157645700adf471920f2e02d3da9b6036027;hb=658d20ab568d0cce4e1dc49b6a5bea8bd1c594c1;hp=f3d38ca5a1e6a724a005cfeec2e3a3842781aa05;hpb=093837200520f2044ffc02e1bd0de9df73e0193c;p=roojs1 diff --git a/roojs-core-debug.js b/roojs-core-debug.js index f3d38ca5a1..eb23157645 100644 --- a/roojs-core-debug.js +++ b/roojs-core-debug.js @@ -13790,10 +13790,10 @@ 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) { + whole = whole.replace(/\B(?=(\d{3})+(?!\d))/g, thousandsDelimiter ); + } var sub = ps[1] ? // has decimals..