mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
Fix quote parsing
This commit is contained in:
parent
b4bc1f1263
commit
073d534419
1 changed files with 1 additions and 1 deletions
|
|
@ -14,7 +14,7 @@ logger = logging.getLogger("pluralkit.bot.commands")
|
|||
|
||||
def next_arg(arg_string: str) -> Tuple[str, Optional[str]]:
|
||||
if arg_string.startswith("\""):
|
||||
end_quote = arg_string.find("\"", start=1)
|
||||
end_quote = arg_string[1:].find("\"") + 1
|
||||
if end_quote > 0:
|
||||
return arg_string[1:end_quote], arg_string[end_quote + 1:].strip()
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue