shutils/update_check.sh: be more strict with rubygem update checks

try to match the whole line from

href="/gems/${pkgname#ruby-}/versions/[VERSION NUMBERS]"

matching until the quote avoids problems like the travis gem that has
special versions like

1.8.10.travis.921.11

before it would match until 1.8.10., now it doesn't match.
This commit is contained in:
maxice8 2018-11-15 18:41:53 -02:00 committed by maxice8
parent 59ac0a82f0
commit 56b6e7b240
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ update_check() {
rx='href="\K[\d\.]+(?=/")';; rx='href="\K[\d\.]+(?=/")';;
*rubygems.org*) *rubygems.org*)
url="https://rubygems.org/gems/${pkgname#ruby-}" url="https://rubygems.org/gems/${pkgname#ruby-}"
rx='versions/\K[\d\.]+' ;; rx='href="/gems/'${pkgname#ruby-}'/versions/\K[\d\.]*(?=")' ;;
esac esac
fi fi