minor bug fixed

This commit is contained in:
Shawn
2022-04-22 15:54:26 +08:00
parent b9b9d0d832
commit 8840ea9ee3

View File

@@ -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