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 1, 2022
1 parent 495a939 commit 36be7b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packaging/specifiers.py
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 36be7b6

Please sign in to comment.