From 6a039ce9c8b124dbac786e0efcf75cfc2c1834d9 Mon Sep 17 00:00:00 2001 From: iBug Date: Mon, 27 Jul 2020 13:29:59 +0800 Subject: [PATCH] Exclude regex from GFWList --- gfwlist.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gfwlist.py b/gfwlist.py index e1743b3..5c35a15 100755 --- a/gfwlist.py +++ b/gfwlist.py @@ -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