Using culture-specific approach instead of regex

This commit is contained in:
Mo Mustakim Ali
2018-10-23 13:48:51 +01:00
committed by GitHub
parent 0c4646201f
commit 98bf5322a3

View File

@@ -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',