From 69019b7a8092c3d1e9ca3ba02a64367b0f8f8d47 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Sat, 25 Sep 2021 03:10:00 +0200 Subject: [PATCH] generate-domains-blocklist: fix the rx_timed regex Fixes #1896 --- utils/generate-domains-blocklist/generate-domains-blocklist.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/generate-domains-blocklist/generate-domains-blocklist.py b/utils/generate-domains-blocklist/generate-domains-blocklist.py index 4344fd8d..32baf05d 100755 --- a/utils/generate-domains-blocklist/generate-domains-blocklist.py +++ b/utils/generate-domains-blocklist/generate-domains-blocklist.py @@ -28,7 +28,7 @@ def parse_trusted_list(content): rx_comment = re.compile(r"^(#|$)") rx_inline_comment = re.compile(r"\s*#\s*[a-z0-9-].*$") rx_trusted = re.compile(r"^([*a-z0-9.-]+)\s*(@\S+)?$") - rx_timed = re.compile(r".+\s*(@\S+)?$") + rx_timed = re.compile(r".+\s*@\S+$") names = set() time_restrictions = {}