diff --git a/Casks/v/visual-studio-code.rb b/Casks/v/visual-studio-code.rb index 373357f43c..340d965bc5 100644 --- a/Casks/v/visual-studio-code.rb +++ b/Casks/v/visual-studio-code.rb @@ -10,7 +10,9 @@ cask "visual-studio-code" do livecheck do url "https://update.code.visualstudio.com/api/update/darwin-universal/stable/latest" - regex(/"productVersion"\s*:\s*"(\d+(:?\.\d+)+)"/i) + strategy :json do |json| + json["productVersion"] + end end auto_updates true