This commit is contained in:
Shawn
2020-08-07 10:54:37 +08:00
parent a0dc9595e8
commit 14869d615b
2 changed files with 5 additions and 2 deletions

BIN
.DS_Store vendored

Binary file not shown.

View File

@@ -1,5 +1,5 @@
/** /**
☑️ 资源解析器 ©𝐒𝐡𝐚𝐰𝐧 ⟦2020-08-03 09:29⟧ ☑️ 资源解析器 ©𝐒𝐡𝐚𝐰𝐧 ⟦2020-08-07 11:29⟧
---------------------------------------------------------- ----------------------------------------------------------
🛠 发现 𝐁𝐔𝐆 请反馈: @Shawn_KOP_bot 🛠 发现 𝐁𝐔𝐆 请反馈: @Shawn_KOP_bot
⛳️ 关注 🆃🅶 相关频道: https://t.me/QuanX_API ⛳️ 关注 🆃🅶 相关频道: https://t.me/QuanX_API
@@ -313,7 +313,7 @@ function Type_Check(subs) {
type = "Surge"; // Surge Profiles type = "Surge"; // Surge Profiles
} else if (SurgeK.some(SurgeCheck)) { } else if (SurgeK.some(SurgeCheck)) {
type = "Subs" // Surge proxy list type = "Subs" // Surge proxy list
} else if (subi.indexOf("[Script]") != -1 || subi.indexOf("[Rule]") != -1 || subi.indexOf("[URL Rewrite]") != -1 || para1.indexOf("dst=regex") != -1) { // Surge module /rule-set(url-regex) 类型 } else if (subi.indexOf("[Script]") != -1 || subi.indexOf("[Rule]") != -1 || subs.indexOf("[URL Rewrite]") != -1 || subs.indexOf("[Map Local]") != -1 || para1.indexOf("dst=regex") != -1) { // Surge module /rule-set(url-regex) 类型
type = "sgmodule" type = "sgmodule"
} else if (subi.indexOf("hostname=") != -1 || RewriteK.some(RewriteCheck)) { } else if (subi.indexOf("hostname=") != -1 || RewriteK.some(RewriteCheck)) {
type = "rewrite" type = "rewrite"
@@ -337,6 +337,9 @@ function URX2QX(subs) {
if (subs[i].slice(0, 9) == "URL-REGEX") { if (subs[i].slice(0, 9) == "URL-REGEX") {
rw = subs[i].replace(/ /g, "").split(",REJECT")[0].split("GEX,")[1] + " url " + "reject-200" rw = subs[i].replace(/ /g, "").split(",REJECT")[0].split("GEX,")[1] + " url " + "reject-200"
nrw.push(rw) nrw.push(rw)
} else if (subs[i].indexOf("data=") != -1 && subs.indexOf("[Map Local]") != -1){
rw = subs[i].replace(/ /g, "").split("data=")[0] + " url " + "reject-dict"
nrw.push(rw)
} }
} }
return nrw return nrw