Fix version-extraction regexp
Fixes https://github.com/matrix-org/matrix-doc/issues/982
This commit is contained in:
parent
a42d3011b7
commit
13d3293378
2 changed files with 2 additions and 2 deletions
|
@ -469,7 +469,7 @@ def list_targets():
|
|||
|
||||
def extract_major(s):
|
||||
major_version = s
|
||||
match = re.match("^(r\d)+(\.\d+)*$", s)
|
||||
match = re.match("^(r\d+)(\.\d+)*$", s)
|
||||
if match:
|
||||
major_version = match.group(1)
|
||||
return major_version
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue