mirror of
https://github.com/Flowseal/tg-ws-proxy.git
synced 2026-05-22 23:41:44 +03:00
Мелкие фиксы настроек и пара багов (#805)
This commit is contained in:
committed by
GitHub
parent
1cbc7dee7d
commit
e3d2229f7f
@@ -73,7 +73,7 @@ def _parse_version_tuple(s: str) -> tuple:
|
||||
return (0,)
|
||||
parts = []
|
||||
for seg in s.split("."):
|
||||
digits = "".join(c for c in seg if c.isdigit())
|
||||
digits = next((seg[:i] for i, c in enumerate(seg) if not c.isdigit()), seg)
|
||||
if digits:
|
||||
try:
|
||||
parts.append(int(digits))
|
||||
|
||||
Reference in New Issue
Block a user