update_check.sh: allow _ in github tarball filename

This commit is contained in:
Gonzalo Tornaría 2023-03-13 00:17:21 -03:00 committed by Leah Neukirchen
parent bbf223eacb
commit c588bf7c98
1 changed files with 1 additions and 1 deletions

View File

@ -130,7 +130,7 @@ update_check() {
*github.com*)
pkgurlname="$(printf %s "$url" | cut -d/ -f4,5)"
url="https://github.com/$pkgurlname/tags"
rx='/archive/refs/tags/(v?|\Q'"$pkgname"'\E-)?\K[\d.]+(?=\.tar\.gz")';;
rx='/archive/refs/tags/(v?|\Q'"$pkgname"'\E[-_])?\K[\d.]+(?=\.tar\.gz")';;
*//gitlab.*|*code.videolan.org*)
case "$url" in
*/-/*) pkgurlname="$(printf %s "$url" | sed -e 's%/-/.*%%g; s%/$%%')";;