allow multiline matches in log messages

This commit is contained in:
Daniel Karbach 2016-10-24 15:51:55 +02:00
parent c801caa19a
commit 863bab3ccf

View File

@ -157,7 +157,7 @@ def pattern_match(*, pattern, value):
True on a match, False otherwise.
"""
re_pattern = '.*'.join(re.escape(part) for part in pattern.split('*'))
return re.fullmatch(re_pattern, value) is not None
return re.fullmatch(re_pattern, value, flags=re.DOTALL) is not None
def abs_datapath():