Allow dashes in tap-formula names

This commit is contained in:
Max Howell 2012-03-17 00:20:37 +00:00
parent 2ed0240cb1
commit fe9e2be8fe

View File

@ -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