diff options
| author | Max Howell | 2012-08-04 13:56:36 -0400 |
|---|---|---|
| committer | Max Howell | 2012-08-04 15:11:47 -0400 |
| commit | 523e21fd6e9cdc1b2d94c6b8e100c620eceaf6c3 (patch) | |
| tree | 5814bcd6815855c35bbde5efb2246603f5879768 /Library | |
| parent | c34c259bc0f3d4d49800fc6e55c6e071340403fb (diff) | |
| download | homebrew-523e21fd6e9cdc1b2d94c6b8e100c620eceaf6c3.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')}" |
