aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/global.rb
diff options
context:
space:
mode:
authorJack Nagel2014-05-03 14:56:10 -0500
committerJack Nagel2014-05-03 15:03:22 -0500
commitd8c15c8fbf59ff3f21dcc1004d8e7cf0d3813cf4 (patch)
treedb2453797d5e09d02d67f41d1395ae0fb4a49940 /Library/Homebrew/global.rb
parent61dd796f255290b24f965d885e31ae433a4811ce (diff)
downloadbrew-d8c15c8fbf59ff3f21dcc1004d8e7cf0d3813cf4.tar.bz2
The \w character class already includes underscore
Newer versions of Ruby issue a warning for repeated character classes.
Diffstat (limited to 'Library/Homebrew/global.rb')
-rw-r--r--Library/Homebrew/global.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/global.rb b/Library/Homebrew/global.rb
index 2a001256e..5e4446196 100644
--- a/Library/Homebrew/global.rb
+++ b/Library/Homebrew/global.rb
@@ -85,8 +85,8 @@ HOMEBREW_USER_AGENT = "Homebrew #{HOMEBREW_VERSION} (Ruby #{RUBY_VERSION}-#{RUBY
HOMEBREW_CURL_ARGS = '-f#LA'
-HOMEBREW_TAP_FORMULA_REGEX = %r{^([\w_-]+)/([\w_-]+)/([\w_-]+)$}
-HOMEBREW_TAP_DIR_REGEX = %r{#{HOMEBREW_LIBRARY}/Taps/([\w_-]+)/([\w_-]+)}
+HOMEBREW_TAP_FORMULA_REGEX = %r{^([\w-]+)/([\w-]+)/([\w-]+)$}
+HOMEBREW_TAP_DIR_REGEX = %r{#{HOMEBREW_LIBRARY}/Taps/([\w-]+)/([\w-]+)}
HOMEBREW_TAP_PATH_REGEX = Regexp.new(HOMEBREW_TAP_DIR_REGEX.source \
+ %r{/(.*)}.source)