Skip to content

Commit

Permalink
fix regex
Browse files Browse the repository at this point in the history
  • Loading branch information
duyguHsnHsn committed Nov 28, 2023
1 parent 3b910bf commit f35d80f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion projects/vdk-plugins/vdk-structlog/tests/test_structlog.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,9 @@ def test_custom_format_overrides_default(log_format):


def _matches_custom_format(log):
pattern = re.compile(r"\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2},\d{3}\s+\S{1,12}\s+\S{1,8}")
pattern = re.compile(
r"\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2},\d{3} \S{1,12} \S{1,8} .+"
)
return bool(pattern.search(log))


Expand Down

0 comments on commit f35d80f

Please sign in to comment.