diff options
| author | Jack Nagel | 2014-05-03 14:56:10 -0500 | 
|---|---|---|
| committer | Jack Nagel | 2014-05-03 15:03:22 -0500 | 
| commit | d8c15c8fbf59ff3f21dcc1004d8e7cf0d3813cf4 (patch) | |
| tree | db2453797d5e09d02d67f41d1395ae0fb4a49940 /Library/Homebrew/global.rb | |
| parent | 61dd796f255290b24f965d885e31ae433a4811ce (diff) | |
| download | brew-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.rb | 4 | 
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)  | 
