Regex extract filter: Return all regex results instead of first match (#730)
This commit is contained in:
@@ -216,7 +216,7 @@ class perform_site_check():
|
|||||||
result = re.findall(s_re.encode('utf8'), stripped_text_from_html,
|
result = re.findall(s_re.encode('utf8'), stripped_text_from_html,
|
||||||
flags=re.MULTILINE | re.DOTALL | re.LOCALE)
|
flags=re.MULTILINE | re.DOTALL | re.LOCALE)
|
||||||
if result:
|
if result:
|
||||||
regex_matched_output.append(result[0])
|
regex_matched_output = regex_matched_output + result
|
||||||
|
|
||||||
if regex_matched_output:
|
if regex_matched_output:
|
||||||
stripped_text_from_html = b'\n'.join(regex_matched_output)
|
stripped_text_from_html = b'\n'.join(regex_matched_output)
|
||||||
|
|||||||
Reference in New Issue
Block a user