From c28db0424d03a1e944a4ded5e9dcdc78a603b531 Mon Sep 17 00:00:00 2001 From: Bevan Kay Date: Wed, 28 Jul 2021 11:47:54 +1000 Subject: [PATCH] livecheck: allow query parameter in electron_builder strategy url Co-authored-by: Sam Ford <1584702+samford@users.noreply.github.com> --- Library/Homebrew/livecheck/strategy/electron_builder.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/livecheck/strategy/electron_builder.rb b/Library/Homebrew/livecheck/strategy/electron_builder.rb index 9c59b9114a..7dda2f8aa8 100644 --- a/Library/Homebrew/livecheck/strategy/electron_builder.rb +++ b/Library/Homebrew/livecheck/strategy/electron_builder.rb @@ -19,7 +19,7 @@ module Homebrew PRIORITY = 0 # The `Regexp` used to determine if the strategy applies to the URL. - URL_MATCH_REGEX = %r{^https?://.+/.+\.ya?ml$}i.freeze + URL_MATCH_REGEX = %r{^https?://.+/[^/]+\.ya?ml(?:\?[^/?]+)?$}i.freeze # Whether the strategy can be applied to the provided URL. #