python/build/project: allow trailing digit after letter in version number

For version numbers such as OpenSSH's, e.g.: "7.2p2"
This commit is contained in:
Max Kellermann 2018-02-09 22:54:02 +01:00
parent 738317bf34
commit 2988bb77e8
1 changed files with 1 additions and 1 deletions

View File

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