Skip to content

Commit

Permalink
fix(CQVIP): typo in RegExp.test (#417)
Browse files Browse the repository at this point in the history
  • Loading branch information
seiuneko authored Jan 2, 2025
1 parent 9c3a1ae commit 0513414
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CQVIP.js
Original file line number Diff line number Diff line change
Expand Up @@ -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];
}
}
Expand Down

0 comments on commit 0513414

Please sign in to comment.