Skip to content

Fix trailing-newline anchor bypass - #177

Merged
sorinsarca merged 1 commit into
opis:masterfrom
nickdnk:fix/regex-anchors
Nov 24, 2026
Merged

sorinsarca merged 1 commit into
opis:masterfrom
nickdnk:fix/regex-anchors

Conversation

@nickdnk

@nickdnk nickdnk commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Hello

Current version allows invalid values in a lot of places because $ is used as a regex anchor instead of \z, so values like "2016-01-01\n" pass date validation, which is an RFC spec violation.

Added tests that fail on the old code. No breaking changes except now properly catches invalid data.

@sorinsarca
sorinsarca merged commit fa37275 into opis:master Nov 24, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants