You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that Trigger/wait for text, Ignore lines containing, Block change-detection while text matches in Text filtering section do not support multiline regex.
Unless I'm missing something it would only break regex filters that have s or m flags set (currently those flags have no effect) or regex that captures \n in the middle of the pattern (currently such regex matches nothing). Everything else should behave the same.
Other option is to match on the whole content only when the s or m flag is set, otherwise use the current implementation.
It seems that
Trigger/wait for text
,Ignore lines containing
,Block change-detection while text matches
inText filtering
section do not support multiline regex.Narrowed it down to:
changedetection.io/changedetectionio/html_tools.py
Lines 365 to 403 in 5dea5e1
The function iterates over the content line by line and matches each regex to each line:
The function could be reworked to use
re.finditer
/re.findall
on the whole content instead.The text was updated successfully, but these errors were encountered: