From f157401824d5ebec744846e91fe2182563a94ea1 Mon Sep 17 00:00:00 2001 From: quindecim Date: Tue, 5 Oct 2021 17:29:52 +0200 Subject: [PATCH] [UPSTREAM] - Fix the rx_timed regex --- config/generate-domains-blocklist.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/generate-domains-blocklist.py b/config/generate-domains-blocklist.py index ca75d64..7bb82a1 100644 --- a/config/generate-domains-blocklist.py +++ b/config/generate-domains-blocklist.py @@ -21,7 +21,7 @@ def parse_time_restricted_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 = {}