mirror of
https://github.com/dgtlmoon/changedetection.io.git
synced 2026-06-06 20:07:35 +00:00
Empty "ignore text" lines could break ignore text and prevent changes from being detected (#3524)
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user