aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2016-09-12 09:13:29 +0100
committerGitHub2016-09-12 09:13:29 +0100
commit2c7ccee771e7d34a5202f007e3101b66c982ea10 (patch)
treebbf1321617f5898025435d1f7ffd23ec6ef2af06 /Library
parent53c3123b5332f3cc8b58b5dcb2598ef384c23fa9 (diff)
parente4ef1f062e7af00db859e205043b127afe33272f (diff)
downloadbrew-2c7ccee771e7d34a5202f007e3101b66c982ea10.tar.bz2
Merge pull request #941 from MikeMcQuaid/test-bot-regex
test-bot: fix regex placement.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/dev-cmd/test-bot.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/dev-cmd/test-bot.rb b/Library/Homebrew/dev-cmd/test-bot.rb
index fc3163212..cef1ecc89 100644
--- a/Library/Homebrew/dev-cmd/test-bot.rb
+++ b/Library/Homebrew/dev-cmd/test-bot.rb
@@ -403,7 +403,7 @@ module Homebrew
@short_url = @url.gsub("https://github.com/", "")
if @short_url.include? "/commit/"
# 7 characters should be enough for a commit (not 40).
- @short_url.gsub!(%r{(commit/\w{7}).*/, '\1'})
+ @short_url.gsub!(%r{(commit/\w{7}).*/}, '\1')
@name = @short_url
else
@name = "#{@short_url}-#{diff_end_sha1}"
@@ -631,7 +631,7 @@ module Homebrew
bottle_step = steps.last
if bottle_step.passed? && bottle_step.output?
bottle_filename =
- bottle_step.output.gsub(%r{.*(\./\S+#{Utils::Bottles.native_regex}).*/m, '\1'})
+ bottle_step.output.gsub(%r{.*(\./\S+#{Utils::Bottles.native_regex}).*/m}, '\1')
bottle_json_filename = bottle_filename.gsub(/\.(\d+\.)?tar\.gz$/, ".json")
bottle_merge_args = ["--merge", "--write", "--no-commit", bottle_json_filename]
bottle_merge_args << "--keep-old" if ARGV.include? "--keep-old"