Skip to content

Commit 1334d28

Browse files
authored
nix hashing format fix
1 parent 3ea1cb1 commit 1334d28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nix_update/hashes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
def to_sri(hashstr: str) -> str:
1313
"""Convert a hash string to SRI format if needed."""
14-
if "-" in hashstr:
14+
if "-" in hashstr or ":" in hashstr:
1515
return hashstr
1616
length = len(hashstr)
1717
if length == MD5_HASH_LENGTH:

0 commit comments

Comments
 (0)