From 0bde48b282adee0f83f514337b71195e7149ab85 Mon Sep 17 00:00:00 2001 From: Freddie Leeman Date: Sun, 10 Jul 2022 15:09:10 +0200 Subject: [PATCH] Regex extract filter: Return all regex results instead of first match (#730) --- changedetectionio/fetch_site_status.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changedetectionio/fetch_site_status.py b/changedetectionio/fetch_site_status.py index ca9f419a..6c3dbec8 100644 --- a/changedetectionio/fetch_site_status.py +++ b/changedetectionio/fetch_site_status.py @@ -216,7 +216,7 @@ class perform_site_check(): result = re.findall(s_re.encode('utf8'), stripped_text_from_html, flags=re.MULTILINE | re.DOTALL | re.LOCALE) if result: - regex_matched_output.append(result[0]) + regex_matched_output = regex_matched_output + result if regex_matched_output: stripped_text_from_html = b'\n'.join(regex_matched_output)