We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3ea1cb1 commit 1334d28Copy full SHA for 1334d28
nix_update/hashes.py
@@ -11,7 +11,7 @@
11
12
def to_sri(hashstr: str) -> str:
13
"""Convert a hash string to SRI format if needed."""
14
- if "-" in hashstr:
+ if "-" in hashstr or ":" in hashstr:
15
return hashstr
16
length = len(hashstr)
17
if length == MD5_HASH_LENGTH:
0 commit comments