Skip to content

Commit 4694426

Browse files
[tbump] Accept 1.2.3b4 format when bumping the version
1 parent 27f3391 commit 4694426

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

script/bump_changelog.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def main() -> None:
4949
if "dev" in args.version:
5050
print("'-devXY' will be cut from version in towncrier.toml")
5151
match = re.match(
52-
r"^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(-\w+\d*)*", args.version
52+
r"^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(-?\w+\d*)*", args.version
5353
)
5454
if not match:
5555
print(

0 commit comments

Comments
 (0)