aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorLee Packham2010-11-20 23:11:27 +0000
committerMike McQuaid2010-11-21 13:20:12 +0000
commitd5c58f889a6b956e9f1c2f06854832224f4320cc (patch)
tree09056bf6786f76c47ddacc6a666983e045cce28c /Library
parent5733fce6fc851ced8e16d32a7e991d777b9e2192 (diff)
downloadbrew-d5c58f889a6b956e9f1c2f06854832224f4320cc.tar.bz2
Make the regex for URL checking more git friendly
* Urls for Git Commits need to be between 4-40 not 40. For example: https://github.com/mxcl/homebrew/commit/805a https://github.com/mxcl/homebrew/commit/805 Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
-rwxr-xr-xLibrary/Contributions/examples/brew-pull.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Contributions/examples/brew-pull.rb b/Library/Contributions/examples/brew-pull.rb
index 38ed73b39..2eccdd0d6 100755
--- a/Library/Contributions/examples/brew-pull.rb
+++ b/Library/Contributions/examples/brew-pull.rb
@@ -16,7 +16,7 @@ end
HOMEBREW_REPOSITORY.cd do
ARGV.each do|arg|
# This regex should work, if it's too precise, feel free to fix it.
- if !arg.match 'https:\/\/github.com\/\w+\/homebrew\/(pull\/\d+|commit\/\w{40})'
+ if !arg.match 'https:\/\/github.com\/\w+\/homebrew\/(pull\/\d+|commit\/\w{4,40})'
ohai 'Ignoring URL:', "Not a GitHub pull request or commit: #{arg}"
next
end