diff options
author | Max Kellermann <max@musicpd.org> | 2018-02-09 22:54:02 +0100 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2018-02-09 22:54:22 +0100 |
commit | 2988bb77e816c1d502bbb58a55e7ef7a30662640 (patch) | |
tree | 4cf3e9665962346391e4121a4dca56951abccca0 /python | |
parent | 738317bf34a783388535768eaa777df6f7c8e071 (diff) |
python/build/project: allow trailing digit after letter in version number
For version numbers such as OpenSSH's, e.g.: "7.2p2"
Diffstat (limited to 'python')
-rw-r--r-- | python/build/project.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/build/project.py b/python/build/project.py index 087ca3d07..352806fcb 100644 --- a/python/build/project.py +++ b/python/build/project.py @@ -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) |