From a8e524d3345271dc350093ed54be008fa436cb0b Mon Sep 17 00:00:00 2001 From: Dawid Dziurla Date: Mon, 27 Jul 2020 17:23:08 +0200 Subject: [PATCH] bottle: fix inreplace string --- Library/Homebrew/dev-cmd/bottle.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/dev-cmd/bottle.rb b/Library/Homebrew/dev-cmd/bottle.rb index 113c0bad39..32cd4e2c6b 100644 --- a/Library/Homebrew/dev-cmd/bottle.rb +++ b/Library/Homebrew/dev-cmd/bottle.rb @@ -484,7 +484,7 @@ module Homebrew update_or_add = "update" if args.keep_old? mismatches = [] - bottle_block_contents = s[/ bottle do(.+?)end\n/m, 1] + bottle_block_contents = s.inreplace_string[/ bottle do(.+?)end\n/m, 1] bottle_block_contents.lines.each do |line| line = line.strip next if line.empty?