mirror of
https://github.com/wavetermdev/homebrew-cask.git
synced 2026-08-05 13:43:24 -07:00
pitch: update livecheck (#123188)
This commit is contained in:
+3
-5
@@ -9,11 +9,9 @@ cask "pitch" do
|
||||
|
||||
livecheck do
|
||||
url "https://desktop-app-builds.pitch.com/latest-mac.yml"
|
||||
strategy :page_match do |page|
|
||||
match = page.match(/Pitch[._-]v?(\d+(?:\.\d+)+)[._-]ci(\d+)\.dmg/i)
|
||||
next if match.blank?
|
||||
|
||||
"#{match[1]},#{match[2]}"
|
||||
regex(/Pitch[._-]v?(\d+(?:\.\d+)+).*?[._-]ci(\d+)\.dmg/i)
|
||||
strategy :page_match do |page, regex|
|
||||
page.scan(regex).map { |match| "#{match[0]},#{match[1]}" }
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user