aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/tap.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/tap.rb')
-rw-r--r--Library/Homebrew/tap.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/tap.rb b/Library/Homebrew/tap.rb
index 66aa10158..0aabce6c3 100644
--- a/Library/Homebrew/tap.rb
+++ b/Library/Homebrew/tap.rb
@@ -43,8 +43,8 @@ class Tap
def self.from_path(path)
path.to_s =~ HOMEBREW_TAP_PATH_REGEX
- raise "Invalid tap path '#{path}'" unless $1
- fetch($1, $2)
+ raise "Invalid tap path '#{path}'" unless Regexp.last_match(1)
+ fetch(Regexp.last_match(1), Regexp.last_match(2))
rescue
# No need to error as a nil tap is sufficient to show failure.
nil