summaryrefslogtreecommitdiff
path: root/tbump.toml
diff options
context:
space:
mode:
authorPierre Sassoulas <pierre.sassoulas@gmail.com>2023-01-13 21:50:31 +0100
committerDaniƫl van Noord <13665637+DanielNoord@users.noreply.github.com>2023-01-15 11:56:27 +0100
commit2f711abae6248c9810bc01e987d04dff62b9db57 (patch)
treea5e64e0fb333972778974b9a691e86092d7b16b4 /tbump.toml
parent25848e2ff9f2aaa0d739ff263f87b8622822a877 (diff)
downloadpylint-git-2f711abae6248c9810bc01e987d04dff62b9db57.tar.gz
[tbump] Fix the regex for semver version to accept '1.2.3a4'
Diffstat (limited to 'tbump.toml')
-rw-r--r--tbump.toml2
1 files changed, 1 insertions, 1 deletions
diff --git a/tbump.toml b/tbump.toml
index 92590505c..d096a505a 100644
--- a/tbump.toml
+++ b/tbump.toml
@@ -8,7 +8,7 @@ regex = '''
(?P<minor>0|[1-9]\d*)
\.
(?P<patch>0|[1-9]\d*)
-(?:-(?P<prerelease>(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+(?P<buildmetadata>[0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$
+(?:-?(?P<prerelease>(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+(?P<buildmetadata>[0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$
'''
[git]