From 9bac16904d5a57e7479a0fdcd9cd0277f0fefb48 Mon Sep 17 00:00:00 2001 From: Francisco Santos Date: Fri, 24 Nov 2023 13:58:12 +0100 Subject: [PATCH] lower --- examples/livehunt_network_watch.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/livehunt_network_watch.py b/examples/livehunt_network_watch.py index 3a32d03..2ca212f 100644 --- a/examples/livehunt_network_watch.py +++ b/examples/livehunt_network_watch.py @@ -90,7 +90,8 @@ def render_template(entity, domains): rule_block = f.read() for domain in domains: - domain_escaped = re.compile(r"[^[a-z\d]").sub("_", domain) + domain_escaped = domain.lower() + domain_escaped = re.compile(r"[^[a-z\d]").sub("_", domain_escaped) domain_escaped = re.compile(r"(_(?i:_)+)").sub("_", domain_escaped) if not domain_escaped in escaped_domains: @@ -277,6 +278,7 @@ async def main(): new_domain_list.remove(deleted_domain) new_domain_list = list(set(new_domain_list)) + new_domain_list = [domain.lower() for domain in new_domain_list] new_domain_list.sort() if new_domain_list != domains: