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

Function DelReg

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

Source from the content-addressed store, hash-verified

2237
2238//正则删除节点名内的字符
2239function DelReg(content) {
2240 delreg = RegExp(delreg, "gmi")
2241 content=content.replace(/tag\s*\=\s*/,"tag=")
2242 cnt0 = content.split("tag=")[0]
2243 cnt1 = content.split("tag=")[1].split(",")[0]
2244 cnt2 = content.split("tag=")[1].split(",").length==1 ? "": content.split(cnt1)[1]
2245 cnt = cnt0 + "tag=" + cnt1.replace(delreg, "")+cnt2
2246 return cnt
2247}
2248
2249//节点重命名
2250function Rename(str) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected