Skip to content

Commit

Permalink
fix hash detection
Browse files Browse the repository at this point in the history
  • Loading branch information
mkorthof committed Dec 11, 2020
1 parent e3cfc43 commit 9aba957
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chrupd.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -787,7 +787,7 @@ Function parseRss ($rssFeed) {
<# CHECK URL, HASH AND BREAK LOOP #>
If ($script:url -Match ('^https://.*' + '(' + $version + ')?.*' + $revision + '.*' + $items[$editor].fmask + '$') ) {
$script:urlMatch = 1
$hashFeed = $_ -Replace ".*?(?i)$channel.*?<a href=`"$url`">$($items[$editor].fmask)</a><br />(?:(sha1|md5): ([0-9a-f]{32}|[0-9a-f]{40}))</li>.*", '$1 $2'
$hashFeed = $_ -Replace ".*?(?i)$channel.*?<a href=`"$url`">$($items[$editor].fmask)</a><br />(?:(sha1|md5): ([0-9a-f]{32}|[0-9a-f]{40})) .*", '$1 $2'
$script:hashAlgo, $script:hash = $hashFeed.ToUpper().Split(' ')
hashPreCheck "$script:hashAlgo" "$script:hash"
Break
Expand Down

0 comments on commit 9aba957

Please sign in to comment.