From 8ec00ab8320d9e9d339129f7a7fce9c9fa8159f7 Mon Sep 17 00:00:00 2001 From: Deven Blake Date: Thu, 6 May 2021 09:09:19 -0400 Subject: [PATCH] s/space/spaces/g and spaces is now a list --- it/main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/it/main.py b/it/main.py index 724b72e..6244c49 100644 --- a/it/main.py +++ b/it/main.py @@ -30,15 +30,15 @@ def parsecommand(command): for i in range(len(command)): if (command[i] in quotes) and inQuotes == 0\ and (i == 0 \ - or (i > 0 and command[i-1] != escape)): + or (i > 0 and not(command[i-1] in escapes))): inQuotes = command[i] elif command[i] == inQuotes \ - and (i > 0 and command[i-1] != escape): + and (i > 0 and not(command[i-1] in escapes)): inQuotes = 0 elif command[i] in space and inQuotes == 0\ - and (i > 0 and command[i-1] != escape): + and (i > 0 and not(command[i-1] in escapes)): parsed_command += [word] word = ""