Skip to content

fix: revert filter separator from alternation to backtick - #196

Open
MakostaDev wants to merge 1 commit into
MetaCubeX:mainfrom
MakostaDev:revert-backtick
Open

fix: revert filter separator from alternation to backtick#196
MakostaDev wants to merge 1 commit into
MetaCubeX:mainfrom
MakostaDev:revert-backtick

Conversation

@MakostaDev

@MakostaDev MakostaDev commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

Mihomo has special handling for the backtick character in filter/exclude-filter. This lets you control the order of proxies within a proxy-group or proxy-provider by separating patterns with a backtick:
https://github.com/MetaCubeX/mihomo/blob/1e62d55418ea55f221ae8523135c1440667fd935/adapter/outboundgroup/groupbase.go#L64-L78
https://github.com/MetaCubeX/mihomo/blob/e928ef59c1aaa5b7db01a3a01f2c97730f0d0d16/adapter/provider/provider.go#L349-L367

However, in this commit the backtick separator was replaced with |:
b2f28dd#diff-f205c072e6e58ba4f1dce50461e4ac10c93a2fd6ac4f878fb52ec20744dd895c

But | is itself a regex metacharacter. It denotes alternation, which the docs even link to.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant