2015-06-07 11:49:41 -07:00
|
|
|
# match taps' formulae, e.g. someuser/sometap/someformula
|
2016-09-04 11:15:32 +01:00
|
|
|
HOMEBREW_TAP_FORMULA_REGEX = %r{^([\w-]+)/([\w-]+)/([\w+-.@]+)$}
|
2015-06-07 11:49:41 -07:00
|
|
|
# match taps' directory paths, 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-]+)}
|
2015-06-07 11:49:41 -07:00
|
|
|
# match taps' formula paths, e.g. HOMEBREW_LIBRARY/Taps/someuser/sometap/someformula
|
2014-05-14 16:43:52 +09:00
|
|
|
HOMEBREW_TAP_PATH_REGEX = Regexp.new(HOMEBREW_TAP_DIR_REGEX.source + %r{/(.*)}.source)
|
2016-01-11 20:34:55 +11:00
|
|
|
# match the default and the versions brew-cask tap e.g. Caskroom/cask or Caskroom/versions
|
2016-03-22 21:06:56 -07:00
|
|
|
HOMEBREW_CASK_TAP_FORMULA_REGEX = %r{^([Cc]askroom)/(cask|versions)/([\w+-.]+)$}
|