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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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