MCPcopy Index your code
hub / github.com/Moli-X/Resources / isQuanX

Function isQuanX

Script/Parser.js:2100–2113  ·  view source on GitHub ↗
(content)

Source from the content-addressed store, hash-verified

2098
2099// 用于过滤非节点部分(比如整份配置中其它内容),同时纠正部分不规范的写法(没有把 tag 写在最后)
2100function isQuanX(content) {
2101 var cnts = content.split("\n");
2102 var nlist = []
2103 for (var i = 0; i < cnts.length; i++) {
2104 var cnti = cnts[i];
2105 if (cnti.indexOf("=") != -1 && cnti.indexOf("tag") != -1) {
2106 var cnt = cnti.split("=")[0].trim()
2107 if (cnt == "http" || cnt == "shadowsocks" || cnt == "trojan" || cnt == "vmess"|| cnt == "socks5") {
2108 nlist.push(QXFix(cnti))
2109 }
2110 }
2111 }
2112 return nlist
2113}
2114
2115//surge script/quanx-rewrite - > quanx
2116function isQuanXRewrite(content) {

Callers 4

ResourceParseFunction · 0.85
Subs2QXFunction · 0.85
initFunction · 0.85
initFunction · 0.85

Calls 3

QXFixFunction · 0.85
indexOfMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…