From 202c6ef8262ca95bc5362bb431377c14847a3679 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Wed, 30 Oct 2013 11:19:28 -0700 Subject: global: add more tap regexes. --- Library/Homebrew/cmd/info.rb | 2 +- Library/Homebrew/cmd/versions.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'Library/Homebrew/cmd') diff --git a/Library/Homebrew/cmd/info.rb b/Library/Homebrew/cmd/info.rb index d794cf26f..3180c60b6 100644 --- a/Library/Homebrew/cmd/info.rb +++ b/Library/Homebrew/cmd/info.rb @@ -67,7 +67,7 @@ module Homebrew extend self def github_info f path = f.path.realpath - if path.to_s =~ %r{#{HOMEBREW_REPOSITORY}/Library/Taps/(\w+)-(\w+)/(.*)} + if path.to_s =~ HOMEBREW_TAP_PATH_REGEX user = $1 repo = "homebrew-#$2" path = $3 diff --git a/Library/Homebrew/cmd/versions.rb b/Library/Homebrew/cmd/versions.rb index daca2469a..35597c6c5 100644 --- a/Library/Homebrew/cmd/versions.rb +++ b/Library/Homebrew/cmd/versions.rb @@ -64,7 +64,7 @@ class Formula private def repository @repository ||= begin - if path.realpath.to_s =~ %r{#{HOMEBREW_REPOSITORY}/Library/Taps/(\w+)-(\w+)} + if path.realpath.to_s =~ HOMEBREW_TAP_DIR_REGEX HOMEBREW_REPOSITORY/"Library/Taps/#$1-#$2" else HOMEBREW_REPOSITORY -- cgit v1.2.3