From 2353e4ccc1f413991797cc37a5ab8ba23c8e515b Mon Sep 17 00:00:00 2001 From: Kayou Date: Tue, 5 Mar 2024 22:25:57 +0100 Subject: [PATCH] use lstrip and rstrip instead of strip to fix some edge case --- autoupdate_app_sources/autoupdate_app_sources.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoupdate_app_sources/autoupdate_app_sources.py b/autoupdate_app_sources/autoupdate_app_sources.py index f9297c5..513ddf9 100755 --- a/autoupdate_app_sources/autoupdate_app_sources.py +++ b/autoupdate_app_sources/autoupdate_app_sources.py @@ -300,7 +300,7 @@ class AppAutoUpdater: @staticmethod def tag_to_int_tuple(tag: str) -> tuple[int, ...]: - tag = tag.strip("v").replace("-", ".").strip(".") + tag = tag.lstrip("v").replace("-", ".").rstrip(".") int_tuple = tag.split(".") assert all(i.isdigit() for i in int_tuple), f"Cant convert {tag} to int tuple :/" return tuple(int(i) for i in int_tuple)