We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 259b8b4 commit 1c5ebe1Copy full SHA for 1c5ebe1
tasks.py
@@ -270,9 +270,9 @@ def validatetag(context: Context) -> None:
270
git_tag = result.stdout.rstrip()
271
272
# Validate that the Git tag appears to be a valid version number
273
- ver_regex = re.compile(r'(\d+)\.(\d+)\.(\d+)(a|b|rc)(\d+)')
274
- match = ver_regex.fullmatch(git_tag)
275
- if match is None:
+ ver_regex = re.compile(r'(\d+)\.(\d+)\.(\d+)((a|b|rc)(\d+))?')
+ found = ver_regex.fullmatch(git_tag)
+ if found is None:
276
print(f'Tag {git_tag!r} does not appear to be a valid version number')
277
sys.exit(-1)
278
else:
0 commit comments