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

Function nocheck

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

Source from the content-addressed store, hash-verified

1316 var RuleK = ["//", "#", ";", "[", "!", "/"]
1317 const RuleCheck = (item) => cnt.trim().indexOf(item) == 0; //无视注释行
1318 const nocheck = (item) => /^\d+$/.test(item) //检查数字项
1319 cnt = cnt.split("#")[0].trim() // 去除注释部分
1320 if (cnt.trim().indexOf(" ") == -1 && cnt.trim() != "" && !RuleK.some(RuleCheck)) {
1321 if (cnt.indexOf("::") != -1 && cnt.indexOf("/") != -1) { // ip-v6?

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected