bump-formula-pr: even more precise tag replacement

This commit is contained in:
Alexander Bayandin 2022-07-22 14:18:33 +01:00 committed by GitHub
parent b62c271be5
commit 4f3a7125ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -243,8 +243,8 @@ module Homebrew
elsif new_tag.present?
[
[
/#{formula_spec.specs[:tag]}(?=")/,
new_tag,
/tag:(\s+")#{formula_spec.specs[:tag]}(?=")/,
"tag:\\1#{new_tag}\\2",
],
[
formula_spec.specs[:revision],