diff options
| author | 2018-04-12 13:22:09 +0200 | |
|---|---|---|
| committer | 2018-04-12 13:22:09 +0200 | |
| commit | 655aaaa426b35cfaf0362336cf94ddf06a77fc7f (patch) | |
| tree | 032d2a0923901a72efca6a53cb47aaf28265f5d7 | |
| parent | Echo/embed commands for staff testing (diff) | |
Allow using double quotes within triple double quotes. (#47)
| -rw-r--r-- | bot/__init__.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bot/__init__.py b/bot/__init__.py index 071ec6c98..76cab5a74 100644 --- a/bot/__init__.py +++ b/bot/__init__.py @@ -149,6 +149,9 @@ def _get_word(self) -> str: log.trace(f"{arg} is not a str, casting to str.") arg = str(arg) + # Allow using double quotes within triple double quotes + arg = arg.replace('"', '\\"') + # Adding double quotes to every argument log.trace(f"Wrapping all args in double quotes.") new_args.append(f'"{arg}"') |