mirror of
https://github.com/Mailu/Mailu.git
synced 2025-01-18 03:21:36 +02:00
another
(cherry picked from commit c0d0dcf71377b639d8c83421c830cd6d69ebec4d)
This commit is contained in:
parent
600235f393
commit
2d2e9c4d8a
@ -33,7 +33,7 @@ class LogFilter(object):
|
||||
def __init__(self, stream, re_patterns):
|
||||
self.stream = stream
|
||||
if isinstance(re_patterns, list):
|
||||
self.pattern = re.compile('|'.join([f'(?:{pattern})' for pattern in re_patterns]))
|
||||
self.pattern = re.compile('|'.join([fr'(?:{pattern})' for pattern in re_patterns]))
|
||||
elif isinstance(re_patterns, str):
|
||||
self.pattern = re.compile(re_patterns)
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user