aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Mintz <[email protected]>2019-02-01 02:37:32 +0000
committerRapptz <[email protected]>2019-02-06 01:52:12 -0500
commitbb9f153d298f2638206b65d4ba94f0e2ea13a0b1 (patch)
tree6f1b8c32b06a695a444c192143ab2590d6bf812a
parentFix ReactionIterator for limit > 100 (diff)
downloaddiscord.py-bb9f153d298f2638206b65d4ba94f0e2ea13a0b1.tar.xz
discord.py-bb9f153d298f2638206b65d4ba94f0e2ea13a0b1.zip
commands.clean_content: escape || spoilers ||
-rw-r--r--discord/ext/commands/converter.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/ext/commands/converter.py b/discord/ext/commands/converter.py
index 8e276610..3006b200 100644
--- a/discord/ext/commands/converter.py
+++ b/discord/ext/commands/converter.py
@@ -475,7 +475,7 @@ class clean_content(Converter):
if self.escape_markdown:
transformations = {
re.escape(c): '\\' + c
- for c in ('*', '`', '_', '~', '\\')
+ for c in ('*', '`', '_', '~', '\\', '||')
}
def replace(obj):