Skip to content

Commit efc3f5c

Browse files
committed
Substitute versions more accurately.
1 parent 90d3574 commit efc3f5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/tag_release.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def replace_unreleased_tags(tag: str, dry_run: bool) -> None:
5454
if file.suffix != ".py":
5555
continue
5656
text = file.read_text(encoding="utf-8")
57-
new_text = re.sub(r":: unreleased", rf":: {short_tag}", text)
57+
new_text = re.sub(r":: *unreleased", rf":: {short_tag}", text, flags=re.IGNORECASE)
5858
if text != new_text:
5959
print(f"Update tags in {file}")
6060
if not dry_run:

0 commit comments

Comments
 (0)