diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/pip/_internal/models/link.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pip/_internal/models/link.py b/src/pip/_internal/models/link.py index 765dbce2c..9dd3160d5 100644 --- a/src/pip/_internal/models/link.py +++ b/src/pip/_internal/models/link.py @@ -61,7 +61,7 @@ class LinkHash: # against Hashes when hash-checking is needed. This is easier to debug than # proactively discarding an invalid hex digest, as we handle incorrect hashes # and malformed hashes in the same place. - r"[#&]({choices})=([^&]+)".format( + r"[#&]({choices})=([^&]*)".format( choices="|".join(re.escape(hash_name) for hash_name in _SUPPORTED_HASHES) ), ) |