diff --git a/Casks/i/iexplorer.rb b/Casks/i/iexplorer.rb index 374dbd6363f8..28106cb99280 100644 --- a/Casks/i/iexplorer.rb +++ b/Casks/i/iexplorer.rb @@ -8,13 +8,13 @@ homepage "https://macroplant.com/iexplorer" livecheck do - url "https://macroplant.com/iexplorer/mac/v#{version.csv.first.major}/appcast" + url "https://macroplant.com/iexplorer/appcast" regex(%r{/(\d+)/iExplorer[._-]v?(\d+(?:\.\d+)+)\.dmg}i) - strategy :sparkle do |item, regex| - match = item.url.match(regex) + strategy :page_match do |page, regex| + match = page.match(regex) next if match.blank? - "#{item.version},#{match[1]}" + "#{match[2]},#{match[1]}" end end