Skip to content

Commit

Permalink
hot-fix for number format (#468)
Browse files Browse the repository at this point in the history
Co-authored-by: Mi L <[email protected]>
  • Loading branch information
llomal and Mi L authored Aug 23, 2022
1 parent 419c302 commit 5c2767f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/diff.js
Original file line number Diff line number Diff line change
@@ -34,7 +34,7 @@ function formatValue(val, typ) {
}

function formatInt(x) {
return x.replace(/\B(?<!\.\d*)(?=(\d{3})+(?!\d))/g, ",");
return x.replace(/\B(?=(\d{3})+(?!\d))/g, ",");
}

function getValue(x) {

0 comments on commit 5c2767f

Please sign in to comment.