mirror of
https://github.com/iBug/pac.git
synced 2025-07-13 21:02:16 +08:00
Exclude regex from GFWList
This commit is contained in:
parent
97f3e306b9
commit
6a039ce9c8
@ -43,6 +43,9 @@ def parse_gfwlist(text):
|
|||||||
if line.startswith("||"):
|
if line.startswith("||"):
|
||||||
# domain prefix
|
# domain prefix
|
||||||
update_domains(domains, line[2:], mode)
|
update_domains(domains, line[2:], mode)
|
||||||
|
elif line.startswith("/"):
|
||||||
|
# regex, can't handle yet
|
||||||
|
pass
|
||||||
else:
|
else:
|
||||||
# Keyword pattern
|
# Keyword pattern
|
||||||
# Single vertical line at either side means string boundary
|
# Single vertical line at either side means string boundary
|
||||||
|
Loading…
Reference in New Issue
Block a user