mirror of
https://gitclone.com/github.com/MetaCubeX/Clash.Meta
synced 2025-02-23 10:23:14 +08:00
fix: remote logic rules cannot be parsed (#837)
This commit is contained in:
parent
261b6e8dce
commit
8ff476a3a1
@ -76,7 +76,11 @@ func ruleParse(ruleRaw string) (string, string, []string) {
|
|||||||
} else if len(item) == 2 {
|
} else if len(item) == 2 {
|
||||||
return item[0], item[1], nil
|
return item[0], item[1], nil
|
||||||
} else if len(item) > 2 {
|
} else if len(item) > 2 {
|
||||||
return item[0], item[1], item[2:]
|
if item[0] == "NOT" || item[0] == "OR" || item[0] == "AND" || item[0] == "SUB-RULE" {
|
||||||
|
return item[0], strings.Join(item[1:len(item)], ","), nil
|
||||||
|
} else {
|
||||||
|
return item[0], item[1], item[2:]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return "", "", nil
|
return "", "", nil
|
||||||
|
Loading…
Reference in New Issue
Block a user