From eab7829df1cf6db2e6fff7211046a7a7737e6c2d Mon Sep 17 00:00:00 2001 From: Sam Ford <1584702+samford@users.noreply.github.com> Date: Wed, 1 Nov 2023 23:10:57 -0400 Subject: [PATCH] quickhash: update livecheck --- Casks/q/quickhash.rb | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Casks/q/quickhash.rb b/Casks/q/quickhash.rb index 60033017f4..f5b0ba9e70 100644 --- a/Casks/q/quickhash.rb +++ b/Casks/q/quickhash.rb @@ -9,9 +9,13 @@ cask "quickhash" do livecheck do url "https://www.quickhash-gui.org/downloads/?tax%5Bwpdmcategory%5D=osx/" - regex(%r{/quickhash[._-](?:gui[._-])?v?(\d+(?:-\d+)+)[._-]apple[._-]osx/\?wpdmdl=(\d+).*?dt_update_date.+>(\d+(?:/\d+)+)]*>\s*(\d+[-/]\d+[-/]\d+)\s*<.+? + /quickhash(?:-gui)?[._-]v?(\d+(?:[.-]\d+)+)-apple-osx + /\?(?:[^"' >]+?&)?wpdmdl=([^&"' >]+) + }imx) strategy :page_match do |page, regex| - page.scan(regex).map { |match| "#{match[0].tr("-", ".")},#{match[1]},#{match[2].tr("/", ",")}" } + page.scan(regex).map { |match| "#{match[1].tr("-", ".")},#{match[2]},#{match[0].tr("-/", ",")}" } end end