(input, platform, flags)
| 3569 | } |
| 3570 | |
| 3571 | function 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 |
no test coverage detected