Update resource-parser.js

This commit is contained in:
Shawn
2021-03-26 22:49:57 +08:00
parent 3df086b767
commit 8c77cc815b

View File

@@ -1,5 +1,5 @@
/** /**
☑️ 资源解析器 ©𝐒𝐡𝐚𝐰𝐧 ⟦2021-03-25 17:59⟧ ☑️ 资源解析器 ©𝐒𝐡𝐚𝐰𝐧 ⟦2021-03-26 22:59⟧
---------------------------------------------------------- ----------------------------------------------------------
🛠 发现 𝐁𝐔𝐆 请反馈: @Shawn_KOP_bot 🛠 发现 𝐁𝐔𝐆 请反馈: @Shawn_KOP_bot
⛳️ 关注 🆃🅶 相关频道: https://t.me/QuanX_API ⛳️ 关注 🆃🅶 相关频道: https://t.me/QuanX_API
@@ -229,13 +229,13 @@ function ResourceParse() {
total = Rewrite_Filter(total, Pin0, Pout0,Preg); // 筛选过滤 total = Rewrite_Filter(total, Pin0, Pout0,Preg); // 筛选过滤
if (Preplace) { total = ReplaceReg(total, Preplace) } if (Preplace) { total = ReplaceReg(total, Preplace) }
if (Pcdn) {total = CDN(total)} if (Pcdn) {total = CDN(total)}
total = total.join("\n") //total = total.join("\n")
} else if (type0 == "rewrite") { // rewrite 类型 } else if (type0 == "rewrite") { // rewrite 类型
flag = 2; flag = 2;
total = Rewrite_Filter(isQuanXRewrite(content0.split("\n")), Pin0, Pout0,Preg); total = Rewrite_Filter(isQuanXRewrite(content0.split("\n")), Pin0, Pout0,Preg);
if (Preplace) { total = ReplaceReg(total, Preplace) } if (Preplace) { total = ReplaceReg(total, Preplace) }
if (Pcdn) {total = CDN(total)} if (Pcdn) {total = CDN(total)}
total = total.join("\n") //total = total.join("\n")
} else if (type0 == "Rule") { // rule 类型, 已处理完毕 } else if (type0 == "Rule") { // rule 类型, 已处理完毕
flag = 3; flag = 3;
total = Rule_Handle(content0.split("\n"), Pout0, Pin0).filter(Boolean); total = Rule_Handle(content0.split("\n"), Pout0, Pin0).filter(Boolean);