diff options
author | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2023-01-22 15:11:41 +0100 |
---|---|---|
committer | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2023-01-22 15:29:01 +0100 |
commit | 4694426b521950b4300a93b471cfdc8fb38b9e84 (patch) | |
tree | 8e90bb132e2fae251db3bbf909d2eea6328a98b4 | |
parent | 27f3391ab84b2df4dccb65d3f998cc96c830e8ec (diff) | |
download | pylint-git-4694426b521950b4300a93b471cfdc8fb38b9e84.tar.gz |
[tbump] Accept 1.2.3b4 format when bumping the version
-rw-r--r-- | script/bump_changelog.py | 2 |
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( |