python/project: re-add support for version suffix

Got lost in commit 0f56ddb805
This commit is contained in:
Max Kellermann 2021-08-10 14:39:29 +02:00
parent f3d67115d7
commit bd9e449b69
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ class Project:
self.base = base
if name is None or version is None:
m = re.match(r'^([-\w]+)-(\d[\d.]*[a-z]?[\d.]*(?:-(?:alpha|beta)\d+)?)$', self.base)
m = re.match(r'^([-\w]+)-(\d[\d.]*[a-z]?[\d.]*(?:-(?:alpha|beta)\d+)?)(\+.*)?$', self.base)
if name is None: name = m.group(1)
if version is None: version = m.group(2)