MCPcopy Create free account
hub / github.com/Moli-X/Resources / RuleCheck1

Function RuleCheck1

Script/Parser.js:1282–1282  ·  view source on GitHub ↗
(item)

Source from the content-addressed store, hash-verified

1280 var RuleK1 = ["host", "domain", "ip-cidr", "geoip", "user-agent", "ip6-cidr", "ip-asn"];
1281 const RuleCheck = (item) => cnt[0].trim().toLowerCase().indexOf(item) == 0; //无视注释行
1282 const RuleCheck1 = (item) => cnt[0].trim().toLowerCase().indexOf(item) == 0 ; //无视 quanx 不支持的规则类别&排除 hostname
1283 if (RuleK1.some(RuleCheck1) && !RuleK.some(RuleCheck) ) {
1284 if (cnt.length == 3 && cnt.indexOf("no-resolve") == -1) {
1285 ply0 = Ppolicy != "Shawn" ? Ppolicy : cnt[2]

Callers

nothing calls this directly

Calls 1

indexOfMethod · 0.45

Tested by

no test coverage detected