From 21b188838836b9c1b950c222894af783980ce1d6 Mon Sep 17 00:00:00 2001 From: Sam Ford <1584702+samford@users.noreply.github.com> Date: Sun, 20 Dec 2020 16:00:08 -0500 Subject: [PATCH] Bitbucket: Anchor start of regex with protocol --- Library/Homebrew/livecheck/strategy/bitbucket.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/livecheck/strategy/bitbucket.rb b/Library/Homebrew/livecheck/strategy/bitbucket.rb index 8066183e3d..b28ce5e989 100644 --- a/Library/Homebrew/livecheck/strategy/bitbucket.rb +++ b/Library/Homebrew/livecheck/strategy/bitbucket.rb @@ -30,7 +30,7 @@ module Homebrew class Bitbucket # The `Regexp` used to determine if the strategy applies to the URL. URL_MATCH_REGEX = %r{ - bitbucket\.org/ + ^https?://bitbucket\.org/ (?.+?)/ # The path leading up to the get or downloads part (?get|downloads)/ # An indicator of the file download type (?(?:[^/]+?[_-])?) # Filename text before the version