libnyanpasu / clash-nyanpasu

Clash Nyanpasu~(∠・ω< )⌒☆​
https://nyanpasu.elaina.moe
GNU General Public License v3.0
9.3k stars 581 forks source link

RuleSet 名称大小写问题 #1323

Closed PctAIGM closed 3 months ago

PctAIGM commented 3 months ago

复现步骤 / Step to reproduce

const common = {
    type: "http",
    behavior: "classical",
    interval: 86400
}

export default function (profile) {
    const ruleProviders  = {
        ...profile['rule-providers'],
        "Telegram": {
            ...common,
            path: "./ruleset/Telegram.yaml",
            url: "https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Clash/Telegram/Telegram.yaml"
        }
    }
        profile['rule-providers'] = ruleProviders
        return profile;
    }
prepend-rules:
  - RULE-SET,Telegram,AllHk

预期行为 / Expected behaviour

不报错

实际行为 / Actual Behaviour

image

需要把ruleset的规则名改为小写才能通过,例外如果机场有用到ruleset且名称大写,也会导致该机场的订阅无法使用。

应用日志 / App logs

No response

备注 / Addition details

No response

环境信息 / Environment information

image

自查步骤 / Verify steps

greenhat616 commented 3 months ago

cc @4o3F