chen08209 说明 Concord main 对模块语法的兼容进展

chen08209 说明,所反馈的截图来自仍由应用侧读取模块的构建,而 Concord main 现已读取 URL 模式中的 \cX 控制字符转义、jaq 缺少的 jq 内建函数(包括 IN/1)、Loon 条件行,以及含 URL-REGEX、USER-AGENT 的 AND、OR、NOT 规则。只能按请求判断的条件仍会跳过并说明原因;脚本的“尚未下载”表示应用配置后再获取。应用如何展示以及何时升级 Concord,由相应应用决定。

作者原文

Thanks for the screenshots. They come from an app build that read modules on its own side, before Concord read them in the core. Concord's main now loads each kind of line shown:

  • A \cX escape in a URL pattern (res\.kfc\.com.\cn…) is read as a control character, as ICU and JavaScript read it: b584def9.
  • The jq builtins jaq leaves out, IN/1 among them, are defined: b584def9.
  • Loon's conditional lines (response if ${url} ~= /…/ …) are read: b996dab0. A condition that can only be decided per request is still skipped, with its reason, as docs/compatibility.md describes.
  • AND, OR and NOT rules with URL-REGEX and USER-AGENT operands are read: 98e0b9f5. If a line like the one in your first screenshot is still skipped by an app that embeds a current Concord, the detail under it names the rule type that was refused; please open a new issue through the bug form with the full line.
  • "Not downloaded yet" on a script line is not a refusal: the script is fetched after the profile is applied, and the line loads once it arrives.

How an app shows these lines, and when it moves to a newer Concord, is up to that app; problems in its screens belong in its repository. Closing this as completed.