From e0098deaab5c8a07801c3822ac24a02e0b47ee0e Mon Sep 17 00:00:00 2001 From: Nuckyz <61953774+Nuckyz@users.noreply.github.com> Date: Sun, 3 Nov 2024 14:01:56 -0300 Subject: [PATCH] lets work alright? --- src/utils/patches.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/patches.ts b/src/utils/patches.ts index 855432cc..5411ff37 100644 --- a/src/utils/patches.ts +++ b/src/utils/patches.ts @@ -26,7 +26,7 @@ export function canonicalizeMatch(match: T): T { const isStr = typeof match === "string"; return /^[\d]/.test(hashed) || !/^[\w$]+$/.test(hashed) - ? isStr ? `["${hashed}` : String.raw`(?:\["${hashed}"\])` + ? isStr ? `["${hashed}` : String.raw`(?:\["${hashed})` : isStr ? `.${hashed}` : String.raw`(?:\.${hashed})`; });