From 98bf5322a36b173bc8949934848f4974d29bf31d Mon Sep 17 00:00:00 2001 From: Mo Mustakim Ali Date: Tue, 23 Oct 2018 13:48:51 +0100 Subject: [PATCH] Using culture-specific approach instead of regex --- client/src/components/Filters/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/components/Filters/index.js b/client/src/components/Filters/index.js index 41b0273d..6fd16012 100644 --- a/client/src/components/Filters/index.js +++ b/client/src/components/Filters/index.js @@ -50,7 +50,7 @@ class Filters extends Component { Header: 'Rules count', accessor: 'rulesCount', className: 'text-center', - Cell: props => props.value.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ','), + Cell: props => new Number(props.value).toLocaleString(), }, { Header: 'Last time updated', accessor: 'lastUpdated',