From f010a06208cd306ffb0ef426f31d112806e2aab3 Mon Sep 17 00:00:00 2001 From: Max Howell Date: Sat, 17 Mar 2012 00:20:37 +0000 Subject: Allow dashes in tap-formula names --- Library/Homebrew/exceptions.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Library') diff --git a/Library/Homebrew/exceptions.rb b/Library/Homebrew/exceptions.rb index f577ecae5..de139fcbb 100644 --- a/Library/Homebrew/exceptions.rb +++ b/Library/Homebrew/exceptions.rb @@ -31,7 +31,7 @@ class FormulaUnavailableError < RuntimeError end def to_s - if name =~ %r{(\w+)/(\w+)/(\w+)} then <<-EOS.undent + if name =~ %r{(\w+)/(\w+)/([^/]+)} then <<-EOS.undent No available formula for #$3 #{dependent_s} Please tap it and then try again: brew tap #$1/#$2 EOS -- cgit v1.2.3