Ruby 1.8 doesn't have the \h regexp metacharacter
This commit is contained in:
parent
31a444ef16
commit
2b1b7ef0e4
@ -98,7 +98,7 @@ module Homebrew
|
|||||||
alias_method :failed?, :failed
|
alias_method :failed?, :failed
|
||||||
end
|
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']
|
require 'compat' unless ARGV.include? "--no-compat" or ENV['HOMEBREW_NO_COMPAT']
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user