Trying this to please brew test-bot.

This commit is contained in:
David Griffith 2019-10-21 19:01:54 -07:00
parent 5b58931ebd
commit 11f322b61c

View File

@ -50,7 +50,7 @@ module StringInreplaceExtension
def remove_make_var!(flags) def remove_make_var!(flags)
Array(flags).each do |flag| Array(flags).each do |flag|
# Also remove trailing \n, if present. # Also remove trailing \n, if present.
if !gsub(/^#{Regexp.escape(flag)}[ \t]*[\\?\+\:\!]?=.*$\n?/, "") if !gsub!(/^#{Regexp.escape(flag)}[ \t]*[\\?\+\:\!]?=.*$\n?/, "", false)
errors << "expected to remove #{flag.inspect}" errors << "expected to remove #{flag.inspect}"
end end
end end