From 05134141899d0cce4f540707e27902e33297c3c0 Mon Sep 17 00:00:00 2001 From: seiuneko <25706824+seiuneko@users.noreply.github.com> Date: Thu, 2 Jan 2025 09:41:04 +0800 Subject: [PATCH] fix(CQVIP): typo in RegExp.test (#417) --- CQVIP.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CQVIP.js b/CQVIP.js index 2784f07..14c8a33 100644 --- a/CQVIP.js +++ b/CQVIP.js @@ -51,7 +51,7 @@ function detectWeb(doc, url) { Z.monitorDOMChanges(mainWidget, { childList: true, subtree: true }); } for (const key in typeMap) { - if (new RegExp(`/${key}/`, 'i').tets(url)) { + if (new RegExp(`/${key}/`, 'i').test(url)) { return typeMap[key]; } }