(content)
| 2237 | |
| 2238 | //正则删除节点名内的字符 |
| 2239 | function 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 | //节点重命名 |
| 2250 | function Rename(str) { |
nothing calls this directly
no outgoing calls
no test coverage detected