mirror of
https://github.com/kovidgoyal/kitty.git
synced 2024-11-15 07:04:31 +03:00
Merge branch 'latest' of https://github.com/0jrp0/kitty
This commit is contained in:
commit
5889311688
2
setup.py
2
setup.py
@ -948,7 +948,7 @@ def parse_go_version(x: str) -> Tuple[int, int, int]:
|
||||
def safe_int(x: str) -> int:
|
||||
with suppress(ValueError):
|
||||
return int(x)
|
||||
return int(re.split(r'[a-zA-Z]', x)[0])
|
||||
return int(re.split(r'[-a-zA-Z]', x)[0])
|
||||
ans = list(map(safe_int, x.split('.')))
|
||||
while len(ans) < 3:
|
||||
ans.append(0)
|
||||
|
Loading…
Reference in New Issue
Block a user