aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMax Howell2012-08-04 13:56:36 -0400
committerMax Howell2012-08-04 15:11:47 -0400
commite8c9a19f65133b0b618e70e538e2881a7df25748 (patch)
tree8aa112129ad232955a7a433bac1b0f1e376c584d /Library
parent385e5dacd28cbac138065362fe25ee2979e62578 (diff)
downloadbrew-e8c9a19f65133b0b618e70e538e2881a7df25748.tar.bz2
Tap users can have dashes, adjust regex
Repos can't at this point. Hard to easily fix so avoiding it until 2.0 or until someone moans enough.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/tap.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/tap.rb b/Library/Homebrew/cmd/tap.rb
index 1f4ec19b5..f20266195 100644
--- a/Library/Homebrew/cmd/tap.rb
+++ b/Library/Homebrew/cmd/tap.rb
@@ -72,7 +72,7 @@ end
class Pathname
def tap_ref
case self.to_s
- when %r{^#{HOMEBREW_LIBRARY}/Taps/(\w+)-(\w+)/(.+)}
+ when %r{^#{HOMEBREW_LIBRARY}/Taps/([a-z\-_]+)-(\w+)/(.+)}
"#$1/#$2/#{File.basename($3, '.rb')}"
when %r{^#{HOMEBREW_LIBRARY}/Formula/(.+)}
"mxcl/master/#{File.basename($1, '.rb')}"