We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 75a4aef + 7c48ad1 commit 3388454Copy full SHA for 3388454
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:
tests/test_version_regex_no_rev.py
@@ -17,7 +17,7 @@ def test_main(testpkgs_git: Path) -> None:
"--commit",
18
"net-news-wire",
19
"--version-regex",
20
- "^mac-(\\d+\\.\\d+\\.\\d+(?:b\\d+)?)$",
+ r"^mac-(\d+\.\d+(\.\d+)?(?:b\d+)?)$",
21
],
22
)
23
version = get_nix_value(testpkgs_git, "net-news-wire.version")
0 commit comments