Skip to content

Commit f9805db

Browse files
committed
Update tag validation regex to support prereleases
1 parent cc5a791 commit f9805db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tasks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ def validatetag(context: Context) -> None:
285285
git_tag = result.stdout.rstrip()
286286

287287
# Validate that the Git tag appears to be a valid version number
288-
ver_regex = re.compile(r'(\d+)\.(\d+)\.(\d+)')
288+
ver_regex = re.compile(r'(\d+)\.(\d+)\.(\d+)(a|b|rc)(\d+)')
289289
match = ver_regex.fullmatch(git_tag)
290290
if match is None:
291291
print(f'Tag {git_tag!r} does not appear to be a valid version number')

0 commit comments

Comments
 (0)