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 @@
|
|||||||
/**
|
/**
|
||||||
#Quantumult X 资源解析器 (2020-04-30: 18:33)
|
#Quantumult X 资源解析器 (2020-04-30: 19:33)
|
||||||
|
|
||||||
本资源解析器作者: Shawn(@XIAO_KOP), 有问题请反馈: @Shawn_KOP_bot
|
本资源解析器作者: Shawn(@XIAO_KOP), 有问题请反馈: @Shawn_KOP_bot
|
||||||
|
|
||||||
@@ -108,7 +108,7 @@ function Type_Check(subs){
|
|||||||
var type=""
|
var type=""
|
||||||
var RuleK=["host","domain","ip-cidr","geoip","user-agent"];
|
var RuleK=["host","domain","ip-cidr","geoip","user-agent"];
|
||||||
const RuleCheck = (item) => subs.toLowerCase().indexOf(item)!=-1;
|
const RuleCheck = (item) => subs.toLowerCase().indexOf(item)!=-1;
|
||||||
if(RuleK.some(RuleCheck)){
|
if(RuleK.some(RuleCheck) && subs.indexOf("=")==-1){
|
||||||
type="Rule";
|
type="Rule";
|
||||||
} else if (subs.indexOf("dm1lc3M6Ly")!= -1){
|
} else if (subs.indexOf("dm1lc3M6Ly")!= -1){
|
||||||
type="Vmess"
|
type="Vmess"
|
||||||
|
|||||||
Reference in New Issue
Block a user