Skip to content

Commit

Permalink
忽略url大小写
Browse files Browse the repository at this point in the history
  • Loading branch information
jiaojiaodubai committed Sep 19, 2024
1 parent c6e47d1 commit e747779
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CQVIP.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"inRepository": true,
"translatorType": 4,
"browserSupport": "gcsibv",
"lastUpdated": "2024-09-13 04:10:25"
"lastUpdated": "2024-09-19 07:09:20"
}

/*
Expand Down Expand Up @@ -51,7 +51,7 @@ function detectWeb(doc, url) {
Z.monitorDOMChanges(mainWidget, { childList: true, subtree: true });
}
for (const key in typeMap) {
if (url.includes(`/${key}/`)) {
if (new RegExp(`/${key}/`, 'i').tets(url)) {
return typeMap[key];
}
}
Expand Down

0 comments on commit e747779

Please sign in to comment.