Fix regex for Safari in other file

main release-0.5
Kevin Belisle 2021-09-01 21:10:56 -04:00
parent 7c359aa390
commit 959ac79fbd
1 changed files with 4 additions and 4 deletions

View File

@ -33,10 +33,10 @@ const StackedBarSegment = ({ aggregate, total }) => {
hasArrow
label={`${aggregate.value
.toString()
.replace(
/\B(?<!\.\d*)(?=(\d{3})+(?!\d))/g,
","
)} ${prettifyStatisticName(aggregate.type, aggregate.name)}`}
.replace(/\B(?=(\d{3})+(?!\d))/g, ",")} ${prettifyStatisticName(
aggregate.type,
aggregate.name
)}`}
>
<Box
width={aggregate.value / total}