From 083c197c045c4b995005f81e1efa7869d866bf14 Mon Sep 17 00:00:00 2001 From: Oto Valek Date: Sat, 25 Mar 2023 15:29:00 +0100 Subject: [PATCH] Apply thousandSeparator to integer values --- src/js/classes/columns/FooTable.NumberColumn.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/classes/columns/FooTable.NumberColumn.js b/src/js/classes/columns/FooTable.NumberColumn.js index ec57071d..941d6ef9 100644 --- a/src/js/classes/columns/FooTable.NumberColumn.js +++ b/src/js/classes/columns/FooTable.NumberColumn.js @@ -52,7 +52,7 @@ formatter: function(value, options, rowData){ if (value == null) return ''; var s = (value + '').split('.'); - if (s.length == 2 && s[0].length > 3) { + if (s[0].length > 3) { s[0] = s[0].replace(/\B(?=(?:\d{3})+(?!\d))/g, this.thousandSeparator); } return s.join(this.decimalSeparator);