Skip to content

Commit 3388454

Browse files
authored
Merge branch 'main' into update-nixpkgs
2 parents 75a4aef + 7c48ad1 commit 3388454

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
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:

tests/test_version_regex_no_rev.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def test_main(testpkgs_git: Path) -> None:
1717
"--commit",
1818
"net-news-wire",
1919
"--version-regex",
20-
"^mac-(\\d+\\.\\d+\\.\\d+(?:b\\d+)?)$",
20+
r"^mac-(\d+\.\d+(\.\d+)?(?:b\d+)?)$",
2121
],
2222
)
2323
version = get_nix_value(testpkgs_git, "net-news-wire.version")

0 commit comments

Comments
 (0)