Skip to content

Commit 7c48ad1

Browse files
authored
Merge pull request #533 from h0nIg/patch-8
nix hashing format fix
2 parents 13bd8dd + eb722c7 commit 7c48ad1

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)