From 1a138ef050203f7dcb2a4a447457d5274d639df0 Mon Sep 17 00:00:00 2001 From: Bevan Kay Date: Thu, 14 Oct 2021 10:03:20 +1100 Subject: [PATCH] propresenter-beta: update livecheck (#12194) --- Casks/propresenter-beta.rb | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Casks/propresenter-beta.rb b/Casks/propresenter-beta.rb index 08ea8e5e29defa..38e7503dd34dbd 100644 --- a/Casks/propresenter-beta.rb +++ b/Casks/propresenter-beta.rb @@ -9,8 +9,11 @@ livecheck do url "https://api.renewedvision.com/v1/pro/upgrade?platform=macos&osVersion=0&appVersion=0&buildNumber=0&includeNotes=0&channel=beta" - strategy :page_match do |page| - match = page.match(%r{/ProPresenter_(\d+(?:\.\d+)*)_(\d+)\.zip}i) + regex(%r{/ProPresenter_(\d+(?:\.\d+)*)_(\d+)\.zip}i) + strategy :page_match do |page, regex| + match = page.match(regex) + next if match.blank? + "#{match[1]},#{match[2]}" end end