Skip to content

Commit

Permalink
Fix version regex pattern pre-release labels to be sorted (#705)
Browse files Browse the repository at this point in the history
  • Loading branch information
deathaxe authored Aug 11, 2023
1 parent e5a7893 commit e120b49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/packaging/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def __ne__(self, other: object) -> bool:
(?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 e120b49

Please sign in to comment.