From 8840ea9ee3bcc73607f1d5279f5a3fc94f6a60b4 Mon Sep 17 00:00:00 2001 From: Shawn <45581750+KOP-XIAO@users.noreply.github.com> Date: Fri, 22 Apr 2022 15:54:26 +0800 Subject: [PATCH] minor bug fixed --- Scripts/resource-parser.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Scripts/resource-parser.js b/Scripts/resource-parser.js index 98b04e3..67ff7ec 100644 --- a/Scripts/resource-parser.js +++ b/Scripts/resource-parser.js @@ -1,5 +1,5 @@ /** -☑️ 资源解析器 ©𝐒𝐡𝐚𝐰𝐧 ⟦2022-04-21 18:30⟧ +☑️ 资源解析器 ©𝐒𝐡𝐚𝐰𝐧 ⟦2022-04-22 15:30⟧ ---------------------------------------------------------- 🛠 发现 𝐁𝐔𝐆 请反馈: @ShawnKOP_bot ⛳️ 关注 🆃🅶 相关频道: https://t.me/QuanX_API @@ -1094,8 +1094,8 @@ function rule_list_handle(cnt) { } else if (cnt.split("/").length == 2) {//ip-cidr cnt = "ip-cidr, " + cnt cnt = Ppolicy == "Shawn" ? cnt+", Shawn" : cnt+", "+Ppolicy - } else if (cnt.indexOf("payload:")==-1) { //host - suffix - cnt = "host-suffix, " + cnt + } else if (cnt.indexOf("payload:")==-1) { //host - suffix, clash rule list + cnt = "host-suffix, " + cnt.replace(/'|"|\+\./g,"") cnt = Ppolicy == "Shawn" ? cnt+", Shawn" : cnt+", "+Ppolicy } return cnt