Skip to content

Conversation

@di
Copy link
Member

@di di commented Aug 21, 2025

The current regex permits strings that end in the newline character, which is counter to what the description for the field states ("ASCII letters and numbers, period, underscore and hyphen").

This updates the regex to use \Z instead of $ to match at the end of the string and exclude newline characters.


📚 Documentation preview 📚: https://python-packaging-user-guide--1898.org.readthedocs.build/en/1898/

The current regex permits strings that end in the newline character,
which is counter to what the description for the field states ("ASCII
letters and numbers, period, underscore and hyphen").

This updates the rexex to use `\Z` instead of `$` to match at the end of
the string and exclude newline characters.
@webknjaz webknjaz enabled auto-merge August 21, 2025 21:28
Copy link
Member

@webknjaz webknjaz left a comment

Choose a reason for hiding this comment

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

Thanks!

@webknjaz webknjaz added this pull request to the merge queue Aug 21, 2025
Merged via the queue into pypa:main with commit 4cfc8b9 Aug 21, 2025
7 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.

5 participants