From 2b1b7ef0e4aa1d9fad62cce6032166a3c23984ae Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Mon, 21 Jul 2014 17:27:37 -0500 Subject: Ruby 1.8 doesn't have the \h regexp metacharacter --- Library/Homebrew/global.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Library') 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'] -- cgit v1.2.3