From 8f73887ff2cd68b5285d1154eb708e1684ea5db8 Mon Sep 17 00:00:00 2001 From: Loren Eteval Date: Wed, 23 Oct 2024 16:37:33 +0800 Subject: [PATCH] Update Utility.py Signed-off-by: Loren Eteval --- Furious/Utility/Utility.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Furious/Utility/Utility.py b/Furious/Utility/Utility.py index 258afda..c9d85eb 100644 --- a/Furious/Utility/Utility.py +++ b/Furious/Utility/Utility.py @@ -116,9 +116,12 @@ def getAbsolutePath(path): def versionToValue(version: str) -> int: def _split(): - # x.y.z or x.y.z.u + # x.y or x.y.z or x.y.z.u result = version.split('.') + if len(result) == 2: + result.append('0') + if len(result) == 3: result.append('0')