Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhanced Profile Configuration Parsing and Tag Matching in profile.ini #820

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

se7enmuting
Copy link

@se7enmuting se7enmuting commented Jan 27, 2025

  1. exclude/include supports tag matching for "!!GROUP=", "!!GROUPID=", and "!!INSERT=".
    (Also applicable to the exclude/include_remarks in the pref and external_config configuration files.)
  2. exclude/include supports multiple expressions separated by the delimiter '`'.
  3. Supports parsing multi-line contents for "url=", "rename=", and "exclude/include=" by merging them into a single line using delimiters.

1. exclude/include supports tag matching for "!!GROUP=", "!!GROUPID=", and "!!INSERT=".
2. exclude/include supports multiple expressions separated by the delimiter '`'.
3. Supports parsing multi-line contents for "url=", "rename=", and "exclude/include=" by merging them into a single line using delimiters.
@se7enmuting
Copy link
Author

se7enmuting commented Jan 27, 2025

#436
#407
#169

example_profile.ini

[Profile]

target=clash

url=tag:tag-0,https://url0|tag:tag-1,https://url1
url=tag:tag-2,https://url2
url=tag:tag-3,https://url3
url=tag:my-proxy,config/my-proxy.yaml

config=config/external_config.ini


rename=!!GROUPID=0+!!\s+@
rename=!!TYPE=TROJAN!!$@-TRO
rename=!!GROUP=(tag-0|tag-1|tag-2)!!IEPL@`!!GROUP=my-proxy!!$@-mp


exclude=!!GROUP=tag-0!!(香港)`!!GROUP=tag-1!!(.*美国.*)
exclude=!!GROUP=tag-3!!(香港)
exclude=(流量|官网)`!!GROUPID=4!!(.*美国.*)
;;include=!!GROUP=(tag-0|tag-1)!!(.*日本.*)`!!GROUP=tag-3!!(.*香港.*)

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