From e382d05395da2cc2537692e630228d3d86658ebc Mon Sep 17 00:00:00 2001 From: Ske Date: Sat, 16 Feb 2019 16:34:04 +0100 Subject: [PATCH] Normalize quote character in arg parsing. Closes #42 --- src/pluralkit/bot/commands/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/pluralkit/bot/commands/__init__.py b/src/pluralkit/bot/commands/__init__.py index e2870556..8e15c177 100644 --- a/src/pluralkit/bot/commands/__init__.py +++ b/src/pluralkit/bot/commands/__init__.py @@ -14,6 +14,10 @@ from pluralkit.system import System def next_arg(arg_string: str) -> Tuple[str, Optional[str]]: # A basic quoted-arg parser + + for quote in "“‟”": + arg_string = arg_string.replace(quote, "\"") + if arg_string.startswith("\""): end_quote = arg_string[1:].find("\"") + 1 if end_quote > 0: