MCPcopy Create free account
hub / github.com/Script-Hub-Org/Script-Hub / modifyRule

Function modifyRule

Rewrite-Parser.beta.js:3571–3581  ·  view source on GitHub ↗
(input, platform, flags)

Source from the content-addressed store, hash-verified

3569}
3570
3571function modifyRule(input, platform, flags) {
3572 try {
3573 const tree = parseRule(input)
3574 if (tree) {
3575 return generateRule(tree, platform, flags)
3576 }
3577 } catch (e) {
3578 console.log(e)
3579 shNotify(`修改规则发生错误 ${e.message} 请查看日志`)
3580 }
3581}
3582
3583// Surge 现在支持使用 ' 或 " 来包裹字段。当使用 ' 时," 为合法字符,反之亦然
3584

Callers 1

Calls 4

parseRuleFunction · 0.70
generateRuleFunction · 0.70
shNotifyFunction · 0.70
logMethod · 0.45

Tested by

no test coverage detected