summaryrefslogtreecommitdiff
path: root/script/bump_changelog.py
diff options
context:
space:
mode:
Diffstat (limited to 'script/bump_changelog.py')
-rw-r--r--script/bump_changelog.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/bump_changelog.py b/script/bump_changelog.py
index 420ca1d22..0963c7c60 100644
--- a/script/bump_changelog.py
+++ b/script/bump_changelog.py
@@ -49,7 +49,7 @@ def main() -> None:
if "dev" in args.version:
print("'-devXY' will be cut from version in towncrier.toml")
match = re.match(
- r"^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(-\w+\d*)*", args.version
+ r"^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(-?\w+\d*)*", args.version
)
if not match:
print(