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

Function policy_sets

Script/Parser.js:1377–1389  ·  view source on GitHub ↗
(cnt,para)

Source from the content-addressed store, hash-verified

1375}
1376// filter 正则指定替换 regex1@policy1+regex2@policy2
1377function policy_sets(cnt,para) {
1378 pcnt = para.split("+")
1379 cnt=cnt//.split("\n")
1380 for (i=0;i<pcnt.length;i++){
1381 console.log(pcnt[i])
1382 if (pcnt[i].indexOf("@")!=-1){
1383 cnt = cnt.map(item => filter_set(item, pcnt[i]))
1384 }
1385 }
1386 cnt=cnt.filter(Boolean)//.join("\n")
1387 return cnt
1388 console.log(cnt)
1389}
1390
1391//策略指定
1392function filter_set(cnt,para){

Callers 1

ResourceParseFunction · 0.85

Calls 3

filter_setFunction · 0.85
logMethod · 0.45
indexOfMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…