Skip to content

Commit

Permalink
Fix regex in specifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
hrnciar committed Jul 11, 2022
1 parent 5f4b9f8 commit 9bb4761
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packaging/specifiers.py
Original file line number Diff line number Diff line change
Expand Up @@ -343,10 +343,10 @@ class Specifier(_IndividualSpecifier):
# You cannot use a wild card and a dev or local version
# together so group them with a | and make them optional.
(?:
\.\* # Wild card syntax of .*
|
(?:[-_\.]?dev[-_\.]?[0-9]*)? # dev release
(?:\+[a-z0-9]+(?:[-_\.][a-z0-9]+)*)? # local
|
\.\* # Wild card syntax of .*
)?
)
|
Expand Down

0 comments on commit 9bb4761

Please sign in to comment.