From 2a6bbd106baca3065a733c6b81213c85f33a799a Mon Sep 17 00:00:00 2001 From: Simon <37269807+sdsznsk@users.noreply.github.com> Date: Thu, 23 Nov 2023 23:23:15 +0100 Subject: [PATCH] Fix incorrect version format regexp --- launch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/launch.py b/launch.py index a859c5e..af9c4bf 100644 --- a/launch.py +++ b/launch.py @@ -126,7 +126,7 @@ def bool_str(text): ), "Illegal characters in GAME_MODS_IDS_LIST env" mods = str(os.environ["GAME_MODS_IDS_LIST"]).split(",") mods[:] = [mod for mod in mods if mod] # Remove empty items form list - reg = re.compile(r"^\d\.\d\.\d$") + reg = re.compile(r"^\d+\.\d+\.\d+$") for mod in mods: mod_details = mod.split("=") assert 0 < len(mod_details) < 3, f"{mod} mod not defined properly"