Merge pull request #13597 from bayandin/bayandin-patch-1

bump-formula-pr: even more precise tag replacement
This commit is contained in:
Alexander Bayandin 2022-07-25 17:30:30 +01:00 committed by GitHub
commit 864f1bed11
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? elsif new_tag.present?
[ [
[ [
/#{formula_spec.specs[:tag]}(?=")/, /tag:(\s+")#{formula_spec.specs[:tag]}(?=")/,
new_tag, "tag:\\1#{new_tag}\\2",
], ],
[ [
formula_spec.specs[:revision], formula_spec.specs[:revision],