From 751d9972028768ebf79369dac988ecccbd284433 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Fri, 28 Feb 2014 15:58:20 -0600 Subject: [PATCH] Use constant --- Library/Homebrew/formulary.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/formulary.rb b/Library/Homebrew/formulary.rb index 189160d543..30fcae485b 100644 --- a/Library/Homebrew/formulary.rb +++ b/Library/Homebrew/formulary.rb @@ -174,7 +174,7 @@ class Formulary f = BottleLoader.new(ref) else name_or_path = Formula.canonical_name(ref) - if name_or_path =~ %r{^(\w+)/(\w+)/([^/])+$} + if name_or_path =~ HOMEBREW_TAP_FORMULA_REGEX # name appears to be a tapped formula, so we don't munge it # in order to provide a useful error message when require fails. f = TapLoader.new(name_or_path)