2014-05-14 16:43:52 +09:00
|
|
|
# match expressions when taps are given as ARGS, e.g. someuser/sometap
|
|
|
|
HOMEBREW_TAP_ARGS_REGEX = %r{^([\w-]+)/(homebrew-)?([\w-]+)$}
|
|
|
|
# match taps' formula, e.g. someuser/sometap/someformula
|
2014-07-26 21:02:23 -05:00
|
|
|
HOMEBREW_TAP_FORMULA_REGEX = %r{^([\w-]+)/([\w-]+)/([\w+-.]+)$}
|
2014-05-14 16:43:52 +09:00
|
|
|
# match taps' directory path, e.g. HOMEBREW_LIBRARY/Taps/someuser/sometap
|
2014-07-06 11:24:24 -05:00
|
|
|
HOMEBREW_TAP_DIR_REGEX = %r{#{Regexp.escape(HOMEBREW_LIBRARY.to_s)}/Taps/([\w-]+)/([\w-]+)}
|
2014-05-14 16:43:52 +09:00
|
|
|
# match taps' formula path, e.g. HOMEBREW_LIBRARY/Taps/someuser/sometap/someformula
|
|
|
|
HOMEBREW_TAP_PATH_REGEX = Regexp.new(HOMEBREW_TAP_DIR_REGEX.source + %r{/(.*)}.source)
|
2014-11-28 15:02:42 +00:00
|
|
|
# match the default brew-cask tap e.g. Caskroom/cask
|
|
|
|
HOMEBREW_CASK_TAP_FORMULA_REGEX = %r{^(Caskroom)/(cask)/([\w+-.]+)$}
|