diff options
| author | Jack Nagel | 2014-07-21 17:27:37 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-07-21 17:27:37 -0500 |
| commit | 2b1b7ef0e4aa1d9fad62cce6032166a3c23984ae (patch) | |
| tree | ba57e67182fe6cbc3306d915b22193800fa5a2db /Library | |
| parent | 31a444ef16cc38f9557739d1fc098f0d589b2110 (diff) | |
| download | brew-2b1b7ef0e4aa1d9fad62cce6032166a3c23984ae.tar.bz2 | |
Ruby 1.8 doesn't have the \h regexp metacharacter
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/global.rb | 2 |
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'] |
