mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2024-12-14 18:51:34 +03:00
Using culture-specific approach instead of regex
This commit is contained in:
parent
0c4646201f
commit
98bf5322a3
@ -50,7 +50,7 @@ class Filters extends Component {
|
|||||||
Header: 'Rules count',
|
Header: 'Rules count',
|
||||||
accessor: 'rulesCount',
|
accessor: 'rulesCount',
|
||||||
className: 'text-center',
|
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',
|
Header: 'Last time updated',
|
||||||
accessor: 'lastUpdated',
|
accessor: 'lastUpdated',
|
||||||
|
Loading…
Reference in New Issue
Block a user