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

Function CommentCheck

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

Source from the content-addressed store, hash-verified

1199 const exclude = (item) => cc.indexOf(item) != -1; // 删除项
1200 const RuleCheck = (item) => cc.toLowerCase().indexOf(item) != -1; //规则检查
1201 const CommentCheck = (item) => cc.toLowerCase().indexOf(item) == 0; //无视注释行
1202 if (Tout.some(exclude) && !RuleK.some(CommentCheck) ) {
1203 // 2022-12-15 删除 && RuleK2.some(RuleCheck) 判断条件,以免 list/provider 中参数上生效
1204 dlist.push("-" + Rule_Policy(cc)) // 注释掉条目

Callers

nothing calls this directly

Calls 1

indexOfMethod · 0.45

Tested by

no test coverage detected