From 36be7b61fa8da82f6bd190cf178812eafa1b2453 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Hrn=C4=8Diar?= Date: Fri, 1 Jul 2022 11:34:16 +0200 Subject: [PATCH] Fix regex in specifiers --- packaging/specifiers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packaging/specifiers.py b/packaging/specifiers.py index dbc31a67d..cfef79146 100644 --- a/packaging/specifiers.py +++ b/packaging/specifiers.py @@ -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 .* )? ) |