aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/tap_constants.rb
diff options
context:
space:
mode:
authorJosh Hagins2016-10-19 11:54:30 -0400
committerJosh Hagins2016-10-23 21:48:11 -0400
commit44f1354d63d8c95a61bb12353838c03e9abbebb6 (patch)
tree2f712312035cde470366ac9a40707029504c6517 /Library/Homebrew/tap_constants.rb
parent512a0c950e828fe07e629a629ba4d7b2fb8c2a6d (diff)
downloadbrew-44f1354d63d8c95a61bb12353838c03e9abbebb6.tar.bz2
hbc/qualified_token: simplify token parsing
- Stop supporting archaic "user-repo/token" syntax - Move regex for parsing tapped Cask token to tap_constants
Diffstat (limited to 'Library/Homebrew/tap_constants.rb')
-rw-r--r--Library/Homebrew/tap_constants.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/Library/Homebrew/tap_constants.rb b/Library/Homebrew/tap_constants.rb
index 12de02f49..671081370 100644
--- a/Library/Homebrew/tap_constants.rb
+++ b/Library/Homebrew/tap_constants.rb
@@ -1,5 +1,7 @@
# match taps' formulae, e.g. someuser/sometap/someformula
HOMEBREW_TAP_FORMULA_REGEX = %r{^([\w-]+)/([\w-]+)/([\w+-.@]+)$}
+# match taps' casks, e.g. someuser/sometap/somecask
+HOMEBREW_TAP_CASK_REGEX = %r{^([\w-]+)/([\w-]+)/([a-z0-9\-]+)$}
# 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