aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-02-28 15:58:20 -0600
committerJack Nagel2014-02-28 15:58:20 -0600
commit751d9972028768ebf79369dac988ecccbd284433 (patch)
tree24dd9e16947eeac9bd0563aeedeecb64295c5406 /Library
parent7e76f0282413e063e08055f7012afdcf300cc603 (diff)
downloadbrew-751d9972028768ebf79369dac988ecccbd284433.tar.bz2
Use constant
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/formulary.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/formulary.rb b/Library/Homebrew/formulary.rb
index 189160d54..30fcae485 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)