aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/tap_constants.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/tap_constants.rb')
-rw-r--r--Library/Homebrew/tap_constants.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/tap_constants.rb b/Library/Homebrew/tap_constants.rb
index ef8077d1b..b1f724918 100644
--- a/Library/Homebrew/tap_constants.rb
+++ b/Library/Homebrew/tap_constants.rb
@@ -4,5 +4,5 @@ HOMEBREW_TAP_FORMULA_REGEX = %r{^([\w-]+)/([\w-]+)/([\w+-.]+)$}
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
HOMEBREW_TAP_PATH_REGEX = Regexp.new(HOMEBREW_TAP_DIR_REGEX.source + %r{/(.*)}.source)
-# match the default brew-cask tap e.g. Caskroom/cask
-HOMEBREW_CASK_TAP_FORMULA_REGEX = %r{^(Caskroom)/(cask)/([\w+-.]+)$}
+# match the default and the versions brew-cask tap e.g. Caskroom/cask or Caskroom/versions
+HOMEBREW_CASK_TAP_FORMULA_REGEX = %r{^(Caskroom)/(cask|versions)/([\w+-.]+)$}