Commit 2988bb77 authored by Max Kellermann's avatar Max Kellermann

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

For version numbers such as OpenSSH's, e.g.: "7.2p2"
parent 738317bf
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment