gauche: update livecheck

Closes #111608.

Signed-off-by: Rui Chen <rui@chenrui.dev>
Signed-off-by: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com>
master
Sam Ford 2022-09-24 15:28:16 -04:00 committed by BrewTestBot
parent 14c5822b1b
commit b7f2ad98a1
No known key found for this signature in database
GPG Key ID: 82D7D104050B0F0F
1 changed files with 4 additions and 2 deletions

View File

@ -8,8 +8,10 @@ class Gauche < Formula
livecheck do
url :stable
strategy :github_latest
regex(/href=.*?Gauche[._-]v?(\d+(?:\.\d+)+(?:[._-]p\d+)?)\.t/i)
regex(%r{href=["']?[^"' >]*?/tag/\D*?(\d+(?:[._]\d+)+(?:[._-]?p\d+)?)["' >]}i)
strategy :github_latest do |page, regex|
page.scan(regex).map { |match| match[0].tr("_", ".") }
end
end
bottle do