Normalize quote character in arg parsing. Closes #42

This commit is contained in:
Ske 2019-02-16 16:34:04 +01:00
parent e535e45d90
commit e382d05395

View File

@ -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: