From a59b2dedbb95ad1a424f614de435c10935812c2b Mon Sep 17 00:00:00 2001 From: Shawn <45581750+KOP-XIAO@users.noreply.github.com> Date: Sat, 27 Mar 2021 00:15:25 +0800 Subject: [PATCH] bug fixed --- Scripts/resource-parser.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Scripts/resource-parser.js b/Scripts/resource-parser.js index c998635..a23b894 100644 --- a/Scripts/resource-parser.js +++ b/Scripts/resource-parser.js @@ -1,5 +1,5 @@ /** -☑️ 资源解析器 ©𝐒𝐡𝐚𝐰𝐧 ⟦2021-03-26 22:59⟧ +☑️ 资源解析器 ©𝐒𝐡𝐚𝐰𝐧 ⟦2021-03-27 00:19⟧ ---------------------------------------------------------- 🛠 发现 𝐁𝐔𝐆 请反馈: @Shawn_KOP_bot ⛳️ 关注 🆃🅶 相关频道: https://t.me/QuanX_API @@ -228,14 +228,14 @@ function ResourceParse() { total = SGMD2QX(content0) // 转换 total = Rewrite_Filter(total, Pin0, Pout0,Preg); // 筛选过滤 if (Preplace) { total = ReplaceReg(total, Preplace) } - if (Pcdn) {total = CDN(total)} - //total = total.join("\n") + if (Pcdn) {total = CDN(total) + } else { total = total.join("\n")} } else if (type0 == "rewrite") { // rewrite 类型 flag = 2; total = Rewrite_Filter(isQuanXRewrite(content0.split("\n")), Pin0, Pout0,Preg); if (Preplace) { total = ReplaceReg(total, Preplace) } - if (Pcdn) {total = CDN(total)} - //total = total.join("\n") + if (Pcdn) {total = CDN(total) + } else {total = total.join("\n")} } else if (type0 == "Rule") { // rule 类型, 已处理完毕 flag = 3; total = Rule_Handle(content0.split("\n"), Pout0, Pin0).filter(Boolean);