aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/tap_constants.rb
diff options
context:
space:
mode:
authorJack Nagel2014-07-26 21:02:23 -0500
committerJack Nagel2014-07-26 21:06:56 -0500
commit90762c2f184926a863e6d0fc3c3ffef6cce94960 (patch)
tree516a5540fd887753fb4ca5eb51a027c97b1c8561 /Library/Homebrew/tap_constants.rb
parent5b8e564d7053220498ac8430cbffe69cfd5ec986 (diff)
downloadbrew-90762c2f184926a863e6d0fc3c3ffef6cce94960.tar.bz2
A period is a valid formula name character
Fixes Homebrew/homebrew#31052.
Diffstat (limited to 'Library/Homebrew/tap_constants.rb')
-rw-r--r--Library/Homebrew/tap_constants.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/tap_constants.rb b/Library/Homebrew/tap_constants.rb
index 3550a0637..2aed1887d 100644
--- a/Library/Homebrew/tap_constants.rb
+++ b/Library/Homebrew/tap_constants.rb
@@ -1,7 +1,7 @@
# 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
-HOMEBREW_TAP_FORMULA_REGEX = %r{^([\w-]+)/([\w-]+)/([\w+-]+)$}
+HOMEBREW_TAP_FORMULA_REGEX = %r{^([\w-]+)/([\w-]+)/([\w+-.]+)$}
# match taps' directory path, e.g. HOMEBREW_LIBRARY/Taps/someuser/sometap
HOMEBREW_TAP_DIR_REGEX = %r{#{Regexp.escape(HOMEBREW_LIBRARY.to_s)}/Taps/([\w-]+)/([\w-]+)}
# match taps' formula path, e.g. HOMEBREW_LIBRARY/Taps/someuser/sometap/someformula