allow multiline matches in log messages
This commit is contained in:
parent
c801caa19a
commit
863bab3ccf
@ -157,7 +157,7 @@ def pattern_match(*, pattern, value):
|
|||||||
True on a match, False otherwise.
|
True on a match, False otherwise.
|
||||||
"""
|
"""
|
||||||
re_pattern = '.*'.join(re.escape(part) for part in pattern.split('*'))
|
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():
|
def abs_datapath():
|
||||||
|
Loading…
Reference in New Issue
Block a user