Regex extract filter: Return all regex results instead of first match (#730)

pull/748/head
Freddie Leeman 2 years ago committed by GitHub
parent fae1164c0b
commit 0bde48b282
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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)

Loading…
Cancel
Save