Update version_branch.yml

This commit is contained in:
2025-12-16 17:05:33 -06:00
parent 2b915bf075
commit 7ac6a2d70b

View File

@@ -180,7 +180,7 @@ jobs:
counters["header_replacements"] += n1 counters["header_replacements"] += n1
if p.suffix.lower() == ".xml": if p.suffix.lower() == ".xml":
text2, n2 = xml_re.subn(r"\1" + new_version + r"\3", text) text2, n2 = xml_re.subn(lambda m: m.group(1) + new_version + m.group(3), text)
text = text2 text = text2
if n2: if n2:
counters["xml_replacements"] += n2 counters["xml_replacements"] += n2