From 785dabd071b22aa59b4133c19bcb9fecc75d03c7 Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Tue, 21 Oct 2025 15:54:13 +0200 Subject: [PATCH] Empty "ignore text" lines could break ignore text and prevent changes from being detected (#3524) --- changedetectionio/html_tools.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/changedetectionio/html_tools.py b/changedetectionio/html_tools.py index ef51e096..8edcb3bb 100644 --- a/changedetectionio/html_tools.py +++ b/changedetectionio/html_tools.py @@ -408,6 +408,9 @@ def strip_ignore_text(content, wordlist, mode="content"): ignored_lines = [] for k in wordlist: + # Skip empty strings to avoid matching everything + if not k or not k.strip(): + continue # Is it a regex? res = re.search(PERL_STYLE_REGEX, k, re.IGNORECASE) if res: