ai-proxy-rules
ai-proxy-rules copied to clipboard
domain-list-community 行尾注释被解析为域名
domain-list-community 允许 # 出现在行内,之后的内容均为注释。当前解析器只跳过以 # 开头的整行,因此遇到:
antspace.dev # https://github.com/AprilNEA/reverse-engineering-claude-code-antspace
会在注释 URL 的冒号处分割,错误输出 DOMAIN-SUFFIX,//github.com/aprilnea/reverse-engineering-claude-code-antspace。该条目出现在 Anthropic 和多个聚合规则的 Clash、Shadowrocket 等输出中;对域名做校验的下游更新器会拒绝整份规则。
期望:解析规则、属性和 include: 之前移除行内 # 及其后内容,得到 antspace.dev,并在重新同步和生成后移除各格式中的错误条目。
V2Fly 的这条源数据符合其注释规范;需要修复的是本项目的导入解析器。建议在 normalizeDomainListLine 中先剥离注释,再执行前缀、标签和 include 解析。