Skip to content

Commit

Permalink
Apply thousandSeparator to integer values
Browse files Browse the repository at this point in the history
  • Loading branch information
otovalek committed Mar 25, 2023
1 parent fba11d1 commit 083c197
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/classes/columns/FooTable.NumberColumn.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 083c197

Please sign in to comment.