Exclude regex from GFWList

This commit is contained in:
iBug 2020-07-27 13:29:59 +08:00
parent 97f3e306b9
commit 6a039ce9c8

View File

@ -43,6 +43,9 @@ def parse_gfwlist(text):
if line.startswith("||"):
# domain prefix
update_domains(domains, line[2:], mode)
elif line.startswith("/"):
# regex, can't handle yet
pass
else:
# Keyword pattern
# Single vertical line at either side means string boundary