aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
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)