diff options
| author | Mike McQuaid | 2016-09-04 11:15:32 +0100 | 
|---|---|---|
| committer | Mike McQuaid | 2016-09-04 11:15:32 +0100 | 
| commit | 0c44ce2a38d42876d02275b4db719930860beb03 (patch) | |
| tree | e3a21bc56e8ceadbf14f160609485dc10153f49c /Library | |
| parent | f19ad51734e7d68ba4d1361d942f7138345e3085 (diff) | |
| download | brew-0c44ce2a38d42876d02275b4db719930860beb03.tar.bz2 | |
tap_constants: allow formulae to have @ in name.
Follow-up from #812 to fix handling fully-qualified versioned formulae
names.
Allows pulling https://github.com/Homebrew/homebrew-core/pull/971.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/tap_constants.rb | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/tap_constants.rb b/Library/Homebrew/tap_constants.rb index 3eb319747..12de02f49 100644 --- a/Library/Homebrew/tap_constants.rb +++ b/Library/Homebrew/tap_constants.rb @@ -1,5 +1,5 @@  # match taps' formulae, e.g. someuser/sometap/someformula -HOMEBREW_TAP_FORMULA_REGEX = %r{^([\w-]+)/([\w-]+)/([\w+-.]+)$} +HOMEBREW_TAP_FORMULA_REGEX = %r{^([\w-]+)/([\w-]+)/([\w+-.@]+)$}  # match taps' directory paths, e.g. HOMEBREW_LIBRARY/Taps/someuser/sometap  HOMEBREW_TAP_DIR_REGEX = %r{#{Regexp.escape(HOMEBREW_LIBRARY.to_s)}/Taps/([\w-]+)/([\w-]+)}  # match taps' formula paths, e.g. HOMEBREW_LIBRARY/Taps/someuser/sometap/someformula  | 
