(input, platform, flags)
| 3157 | } |
| 3158 | |
| 3159 | function modifyRule(input, platform, flags) { |
| 3160 | try { |
| 3161 | const tree = parseRule(input) |
| 3162 | if (tree) { |
| 3163 | return generateRule(tree, platform, flags) |
| 3164 | } |
| 3165 | } catch (e) { |
| 3166 | console.log(e) |
| 3167 | shNotify(`修改规则发生错误 ${e.message} 请查看日志`) |
| 3168 | } |
| 3169 | } |
| 3170 | |
| 3171 | // Surge 现在支持使用 ' 或 " 来包裹字段。当使用 ' 时," 为合法字符,反之亦然 |
| 3172 |
no test coverage detected