Skip to content

Commit

Permalink
Fix incorrect version format regexp
Browse files Browse the repository at this point in the history
  • Loading branch information
sdsznsk committed Nov 23, 2023
1 parent 5293b29 commit 2a6bbd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 2a6bbd1

Please sign in to comment.