diff options
| author | Jack Nagel | 2014-02-28 15:58:20 -0600 |
|---|---|---|
| committer | Jack Nagel | 2014-02-28 15:58:20 -0600 |
| commit | 618c909f55cbeebefb2ee07d5ab124640d404def (patch) | |
| tree | adc1df8ac35fae1a81c8df0ba355e34b650cc98f /Library | |
| parent | 3319c2b6f10142119fca7e120a0c5022d4fa63a5 (diff) | |
| download | homebrew-618c909f55cbeebefb2ee07d5ab124640d404def.tar.bz2 | |
Use constant
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/formulary.rb | 2 |
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) |
