diff --git a/src/content/utils/formatting.ts b/src/content/utils/formatting.ts index 9255d90..0418a18 100644 --- a/src/content/utils/formatting.ts +++ b/src/content/utils/formatting.ts @@ -1,7 +1,7 @@ import { $T } from './localization' function toFixed(num: number, fixed: number) { - const re = new RegExp('^-?\\d+(?:\.\\d{0,' + (fixed || -1) + '})?'); + const re = new RegExp('^-?\\d+(?:.\\d{0,' + (fixed || -1) + '})?'); return num.toString().match(re)[0]; }