aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-07-21 17:27:37 -0500
committerJack Nagel2014-07-21 17:27:37 -0500
commitb7dfe99105c3c34ea11d9f6d486a094c65ce22aa (patch)
tree20494406457c910ddfd9aa397412d691a731e692 /Library
parent114e8b974edf7fe5a81b02c49b35fd5c28472fe3 (diff)
downloadhomebrew-b7dfe99105c3c34ea11d9f6d486a094c65ce22aa.tar.bz2
Ruby 1.8 doesn't have the \h regexp metacharacter
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/global.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/global.rb b/Library/Homebrew/global.rb
index 54102f4d5..00f076c86 100644
--- a/Library/Homebrew/global.rb
+++ b/Library/Homebrew/global.rb
@@ -98,7 +98,7 @@ module Homebrew
alias_method :failed?, :failed
end
-HOMEBREW_PULL_OR_COMMIT_URL_REGEX = %r[https://github\.com/([\w-]+)/homebrew(-[\w-]+)?/(?:pull/(\d+)|commit/\h{4,40})]
+HOMEBREW_PULL_OR_COMMIT_URL_REGEX = %r[https://github\.com/([\w-]+)/homebrew(-[\w-]+)?/(?:pull/(\d+)|commit/[0-9a-fA-F]{4,40})]
require 'compat' unless ARGV.include? "--no-compat" or ENV['HOMEBREW_NO_COMPAT']