From 96f4dbd8837621371a2ccc48343406b51b2091dd Mon Sep 17 00:00:00 2001 From: xenticore Date: Mon, 28 Apr 2025 23:16:34 -0400 Subject: [PATCH] lint: remove unnecessary escape in regex --- src/content/utils/formatting.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]; }