mirror of
https://github.com/KOP-XIAO/QuantumultX.git
synced 2026-01-25 13:05:10 +00:00
Update resource-parser.js
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
☑️ 资源解析器 ©𝐒𝐡𝐚𝐰𝐧 ⟦2023-04-10 12:30⟧
|
☑️ 资源解析器 ©𝐒𝐡𝐚𝐰𝐧 ⟦2023-04-10 14:35⟧
|
||||||
----------------------------------------------------------
|
----------------------------------------------------------
|
||||||
🛠 发现 𝐁𝐔𝐆 请反馈: https://t.me/Shawn_Parser_Bot
|
🛠 发现 𝐁𝐔𝐆 请反馈: https://t.me/Shawn_Parser_Bot
|
||||||
⛳️ 关注 🆃🅶 相关频道: https://t.me/QuanX_API
|
⛳️ 关注 🆃🅶 相关频道: https://t.me/QuanX_API
|
||||||
@@ -1427,8 +1427,8 @@ function rule_list_handle(cnt) {
|
|||||||
} else if (cnt.indexOf("payload:")==-1) { //host - suffix, not clash rule list
|
} else if (cnt.indexOf("payload:")==-1) { //host - suffix, not clash rule list
|
||||||
//$notify("xxx","xxxx",cnt)
|
//$notify("xxx","xxxx",cnt)
|
||||||
cnt=cnt.replace(/'|"/g,"").trim()//replace(/'|"|\+\.|\*\.|\*\.\*/g,"") 2023-04-10
|
cnt=cnt.replace(/'|"/g,"").trim()//replace(/'|"|\+\.|\*\.|\*\.\*/g,"") 2023-04-10
|
||||||
if(!/\*|\.|\+/.test(cnt[0])) {
|
if(!/\*|\+/.test(cnt[0])) {
|
||||||
//cnt = cnt[0]=="." ? cnt.replace(".",""): cnt
|
cnt = cnt[0]=="." ? cnt.replace(".",""): cnt
|
||||||
cnt = "host-suffix, " + cnt
|
cnt = "host-suffix, " + cnt
|
||||||
} else {
|
} else {
|
||||||
cnt = "host-wildcard, " + cnt
|
cnt = "host-wildcard, " + cnt
|
||||||
|
|||||||
Reference in New Issue
Block a user