Skip to content
Snippets Groups Projects
Unverified Commit a8e524d3 authored by Dawid Dziurla's avatar Dawid Dziurla Committed by GitHub
Browse files

bottle: fix inreplace string

parent 97cf1750
No related branches found
No related tags found
No related merge requests found
......@@ -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?
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment