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

Function rawtest

Script/Parser.js:812–817  ·  view source on GitHub ↗
(cnt)

Source from the content-addressed store, hash-verified

810
811// 用于某些奇葩用户不使用 raw 链接的问题
812function rawtest(cnt) {
813 var Preg0 = RegExp(".*js-file-line\".*?\<\/td\>", "i")
814 if (Preg0.test(cnt)) {
815 return cnt.replace(/(.*js-file-line\"\>)(.*?)(\<\/td\>)/g,"$2").replace(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">").trim()
816 }
817}
818
819function ToRaw(cnt) {
820 cnt = cnt.split("\n").map(rawtest).filter(Boolean).join("\n")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected