Skip to content

Commit

Permalink
, separator
Browse files Browse the repository at this point in the history
  • Loading branch information
bokkypoobah committed Aug 11, 2024
1 parent c0e4869 commit bd5ac06
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -832,10 +832,10 @@ <h5 class="mt-3">Troubleshooting</h5>
return e.toFixed(precision);
},
formatNumber(e) {
return e ? e.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",") : null;
return e ? e.toString().replace(/(?<!(\.\d*|^.{0}))(?=(\d{3})+(?!\d))/g, ',') : null;
},
formatDecimals(e, decimals = 18) {
return e ? ethers.utils.formatUnits(e, decimals).replace(/\B(?=(\d{3})+(?!\d))/g, ",") : null;
return e ? ethers.utils.formatUnits(e, decimals).replace(/(?<!(\.\d*|^.{0}))(?=(\d{3})+(?!\d))/g, ',') : null;
},
formatTimestamp(ts) {
if (ts != null) {
Expand Down

0 comments on commit bd5ac06

Please sign in to comment.