Allow 'trigger text' on JSON docs

This commit is contained in:
dgtlmoon
2022-02-12 21:53:02 +01:00
parent 6e00f0e025
commit 7d1c4d7673
+3 -1
View File
@@ -198,7 +198,9 @@ class perform_site_check():
update_obj["previous_md5"] = fetched_md5
blocked_by_not_found_trigger_text = False
if is_text_or_html:
# Trigger text can apply to JSON parsed documents too
if is_text_or_html or is_json:
if len(watch['trigger_text']):
blocked_by_not_found_trigger_text = True
for line in watch['trigger_text']: