From b7b8a08f77a2f3a6aef4999cc4e92859ba14cecf Mon Sep 17 00:00:00 2001 From: Trysdyn Black Date: Sun, 28 Mar 2021 19:12:58 -0700 Subject: [PATCH] Fix glitch in command string handling Due to inconsistent structure of spoiler logs, r- spells with "Equal chance of any of the following" could end a line with a ':;". This just find-and-replaces ':;' with ':' because that should never happen in reality. --- main.py | 1 + 1 file changed, 1 insertion(+) diff --git a/main.py b/main.py index 5059d8e..a2fa353 100644 --- a/main.py +++ b/main.py @@ -85,6 +85,7 @@ def parse_COMMANDS(data): # Clean up a couple of clumsy string cases from the join above command_string = command_string.replace('.; ', ': ') command_string = command_string.replace(' ', ' ') + command_string = command_string.replace(':;', ':') # Commit the command to the dict commands[next_command_name] = command_string