Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tighten regex for output assertion parsing #157

Merged
merged 4 commits into from
Dec 21, 2024

Conversation

mjpieters
Copy link
Contributor

The severity group was permissive enough to also capture parts of the message text if that contained any colons. Update it to only capture (ASCII) words, and update preceding groups to match at least 1 character.

Fixes #155

The `severity` group was permissive enough to also capture parts of
the message text if that contained any colons. Update it to only capture
(ASCII) words, and update preceding groups to match at least 1
character.

Fixes typeddjango#155
@mjpieters mjpieters force-pushed the mj/fix-regex-assertion-parsing branch from e6837d2 to 2dfef3b Compare December 20, 2024 14:16
Copy link
Member

@sobolevn sobolevn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@sobolevn sobolevn merged commit c26355c into typeddjango:master Dec 21, 2024
21 checks passed
@mjpieters mjpieters deleted the mj/fix-regex-assertion-parsing branch December 21, 2024 21:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Can't use colon in output lines because item parsing is too greedy
2 participants