Skip to content

Commit 2a3789f

Browse files
committed
Update version regex according to latest packaging version
According to `pypa/packaging#705`.
1 parent 2ae3a87 commit 2a3789f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/validate_pyproject/formats.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
(?P<release>[0-9]+(?:\.[0-9]+)*) # release segment
2222
(?P<pre> # pre-release
2323
[-_\.]?
24-
(?P<pre_l>(a|b|c|rc|alpha|beta|pre|preview))
24+
(?P<pre_l>alpha|a|beta|b|preview|pre|c|rc)
2525
[-_\.]?
2626
(?P<pre_n>[0-9]+)?
2727
)?

0 commit comments

Comments
 (0)