Skip to content

Commit 2ad5474

Browse files
committed
autoupdate: Fix metalink hash extraction
1 parent e7833ee commit 2ad5474

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/autoupdate.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ function find_hash_in_textfile([String] $url, [String] $basename, [String] $rege
6262
if ($hashfile -match $filenameRegex) {
6363
$hash = $matches[1]
6464
}
65-
$metalinkRegex = "<hash[^>]+>(?<meta>[a-fA-F0-9]{64})"
65+
$metalinkRegex = "<hash[^>]+>([a-fA-F0-9]{64})"
6666
if ($hashfile -match $metalinkRegex) {
6767
$hash = $matches[1]
6868
}

0 commit comments

Comments
 (0)