Fix version regex

This commit is contained in:
Liam Cardenas 2018-01-30 10:31:14 -08:00
parent b67d632388
commit 6690f37a72

View file

@ -2,7 +2,7 @@
current_version = 0.20.0-rc8 current_version = 0.20.0-rc8
commit = True commit = True
tag = True tag = True
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)-((?P<release>[a-z]+)(?P<candidate>\d+))? parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(-(?P<release>[a-z]+)(?P<candidate>\d+))?
serialize = serialize =
{major}.{minor}.{patch}-{release}{candidate} {major}.{minor}.{patch}-{release}{candidate}
{major}.{minor}.{patch} {major}.{minor}.{patch}