Ruby 1.8 doesn't have the \h regexp metacharacter

This commit is contained in:
Jack Nagel 2014-07-21 17:27:37 -05:00
parent 31a444ef16
commit 2b1b7ef0e4

View File

@ -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']