MCPcopy Index your code
hub / github.com/Moli-X/Resources / PatternN

Function PatternN

Script/Parser.js:657–673  ·  view source on GitHub ↗
(cnt, para,npara)

Source from the content-addressed store, hash-verified

655
656// 对节点名pattern化操作
657function PatternN(cnt, para,npara) {
658 if(cnt){
659 if(para!=""){//字符
660 for (var i=0;i<26;i++) {
661 cnt = cnt.toLowerCase()
662 cnt = cnt.replace(new RegExp(pat[0][i], "gmi"),pat[para][i])
663 }
664 }
665 if(npara!=""){ //数字
666 for (var i=0;i<10;i++) {
667 cnt = cnt.replace(new RegExp(patn[0][i], "gmi"),patn[npara][i])
668 }
669 }
670 console.log(cnt)
671 return cnt
672 }
673}
674
675
676function Pattern(cnt,para,npara) {

Callers 3

PatternFunction · 0.85
index_handleFunction · 0.85
tag_handleFunction · 0.85

Calls 1

logMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…