From c396e8f9e80fc196ba83964ed11ab2d6e2a09b45 Mon Sep 17 00:00:00 2001 From: Frazer McLean Date: Sun, 24 Nov 2024 09:20:53 +0100 Subject: [PATCH] PEP 440: Update regex from packaging project (#3288) Update regex from packaging project See https://github.com/pypa/packaging/pull/705 Co-authored-by: Hugo van Kemenade --- peps/pep-0440.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/peps/pep-0440.rst b/peps/pep-0440.rst index 16d767c03f4..9e121124ef3 100644 --- a/peps/pep-0440.rst +++ b/peps/pep-0440.rst @@ -1625,7 +1625,7 @@ project):: (?P[0-9]+(?:\.[0-9]+)*) # release segment (?P
                                          # pre-release
                 [-_\.]?
-                (?P(a|b|c|rc|alpha|beta|pre|preview))
+                (?Palpha|a|beta|b|preview|pre|c|rc)
                 [-_\.]?
                 (?P[0-9]+)?
             )?