Skip to content

Commit

Permalink
PEP 440: Update regex from packaging project (python#3288)
Browse files Browse the repository at this point in the history
Update regex from packaging project

See pypa/packaging#705

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
  • Loading branch information
2 people authored and gvanrossum committed Dec 10, 2024
1 parent 0f6ffe3 commit 08318a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion peps/pep-0440.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1625,7 +1625,7 @@ project)::
(?P<release>[0-9]+(?:\.[0-9]+)*) # release segment
(?P<pre> # pre-release
[-_\.]?
(?P<pre_l>(a|b|c|rc|alpha|beta|pre|preview))
(?P<pre_l>alpha|a|beta|b|preview|pre|c|rc)
[-_\.]?
(?P<pre_n>[0-9]+)?
)?
Expand Down

0 comments on commit 08318a1

Please sign in to comment.