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