diff options
author | Stéphane Bidoul <stephane.bidoul@gmail.com> | 2023-04-07 23:49:38 +0200 |
---|---|---|
committer | Stéphane Bidoul <stephane.bidoul@gmail.com> | 2023-04-07 23:49:38 +0200 |
commit | 540f8fbb6d294032f318d58ebadec162f1ea0228 (patch) | |
tree | 140184a951952f784643b2c173c7ceea977cec7e /src | |
parent | 48152bb2e147f11a350b9b7c90057b15b6ba70ea (diff) | |
download | pip-540f8fbb6d294032f318d58ebadec162f1ea0228.tar.gz |
Keep empty hash, as before
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) ), ) |