diff options
| author | Max Howell | 2012-08-04 13:56:36 -0400 |
|---|---|---|
| committer | Max Howell | 2012-08-04 15:11:47 -0400 |
| commit | e8c9a19f65133b0b618e70e538e2881a7df25748 (patch) | |
| tree | 8aa112129ad232955a7a433bac1b0f1e376c584d /Library | |
| parent | 385e5dacd28cbac138065362fe25ee2979e62578 (diff) | |
| download | brew-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.rb | 2 |
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')}" |
