Merge pull request #13474 from samford/bump-formula-pr-handle-url-wth-specs-hash
bump-formula-pr: handle url with specs hash
This commit is contained in:
commit
38e1af8576
@ -275,7 +275,7 @@ module Homebrew
|
|||||||
|
|
||||||
if new_mirrors.present?
|
if new_mirrors.present?
|
||||||
replacement_pairs << [
|
replacement_pairs << [
|
||||||
/^( +)(url "#{Regexp.escape(new_url)}"\n)/m,
|
/^( +)(url "#{Regexp.escape(new_url)}"[^\n]*?\n)/m,
|
||||||
"\\1\\2\\1mirror \"#{new_mirrors.join("\"\n\\1mirror \"")}\"\n",
|
"\\1\\2\\1mirror \"#{new_mirrors.join("\"\n\\1mirror \"")}\"\n",
|
||||||
]
|
]
|
||||||
end
|
end
|
||||||
@ -293,7 +293,7 @@ module Homebrew
|
|||||||
]
|
]
|
||||||
elsif new_url.present?
|
elsif new_url.present?
|
||||||
[
|
[
|
||||||
/^( +)(url "#{Regexp.escape(new_url)}"\n)/m,
|
/^( +)(url "#{Regexp.escape(new_url)}"[^\n]*?\n)/m,
|
||||||
"\\1\\2\\1version \"#{new_version}\"\n",
|
"\\1\\2\\1version \"#{new_version}\"\n",
|
||||||
]
|
]
|
||||||
elsif new_revision.present?
|
elsif new_revision.present?
|
||||||
|
Loading…
x
Reference in New Issue
Block a user