bump-formula-pr: add missing URL escapes
This commit is contained in:
parent
f37cd18e1a
commit
b80af7837a
@ -282,12 +282,12 @@ module Homebrew
|
|||||||
]
|
]
|
||||||
elsif new_mirrors
|
elsif new_mirrors
|
||||||
replacement_pairs << [
|
replacement_pairs << [
|
||||||
/^( +)(mirror \"#{new_mirrors.last}\"\n)/m,
|
/^( +)(mirror \"#{Regexp.escape(new_mirrors.last)}\"\n)/m,
|
||||||
"\\1\\2\\1version \"#{forced_version}\"\n",
|
"\\1\\2\\1version \"#{forced_version}\"\n",
|
||||||
]
|
]
|
||||||
else
|
else
|
||||||
replacement_pairs << [
|
replacement_pairs << [
|
||||||
/^( +)(url \"#{new_url}\"\n)/m,
|
/^( +)(url \"#{Regexp.escape(new_url)}\"\n)/m,
|
||||||
"\\1\\2\\1version \"#{forced_version}\"\n",
|
"\\1\\2\\1version \"#{forced_version}\"\n",
|
||||||
]
|
]
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user