Skip to content

Commit 64d4ce6

Browse files
committed
Disable anonymous groups in VALIDATION_WHEEL_NAME_REGEX
1 parent 2d098cd commit 64d4ce6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

variantlib/constants.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,12 @@
7575
r" (?P<name>[^\s-]+?) " # <name>
7676
r" - (?P<ver>[^\s-]*?) " # "-" <ver>
7777
r" ) " # close "namever" group
78-
r" ( - (?P<build>\d[^-]*?) )? " # optional "-" <build>
78+
r" (?: - (?P<build>\d[^-]*?) )? " # optional "-" <build>
7979
r" - (?P<pyver>[^\s-]+?) " # "-" <pyver> tag
8080
r" - (?P<abi>[^\s-]+?) " # "-" <abi> tag
8181
r" - (?P<plat>[^\s-]+?) " # "-" <plat> tag
8282
r") " # end of <base_wheel_name> group
83-
r"( - (?P<variant_hash> " # optional <variant_hash>
83+
r"(?: - (?P<variant_hash> " # optional <variant_hash>
8484
rf" [0-9a-f]{{{VARIANT_HASH_LEN}}} "
8585
r" ) "
8686
r")? "

0 commit comments

Comments
 (0)