diff --git a/Casks/r/remember-the-milk.rb b/Casks/r/remember-the-milk.rb index bb4c51191af2..93753773dbb5 100644 --- a/Casks/r/remember-the-milk.rb +++ b/Casks/r/remember-the-milk.rb @@ -11,8 +11,14 @@ homepage "https://www.rememberthemilk.com/" livecheck do - url "https://www.rememberthemilk.com/services/mac/" - regex(%r{Version:\s*(\d+(?:\.\d+)+)}i) + url "https://www.rememberthemilk.com/deskmilk-squirrel-updates?arch=#{arch}" + regex(/RememberTheMilk[._-]v?(\d+(?:\.\d+)+)[._-]#{arch}\.zip/i) + strategy :json do |json, regex| + match = json["url"]&.match(regex) + next if match.blank? + + match[1] + end end depends_on macos: ">= :high_sierra"