aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRapptz <[email protected]>2019-04-06 23:02:49 -0400
committerRapptz <[email protected]>2019-04-06 23:02:49 -0400
commitd68af294a2281d02448b9626ee177777715c9162 (patch)
tree6938c06282218d397845bcd3655836b7803a0308
parent[commands] Remove extraneous `or` (diff)
downloaddiscord.py-d68af294a2281d02448b9626ee177777715c9162.tar.xz
discord.py-d68af294a2281d02448b9626ee177777715c9162.zip
Fix regex substitution in utils.escape_mentions
-rw-r--r--discord/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/utils.py b/discord/utils.py
index e277e56c..0882250c 100644
--- a/discord/utils.py
+++ b/discord/utils.py
@@ -405,4 +405,4 @@ def escape_mentions(text):
:class:`str`
The text with the mentions removed.
"""
- return re.sub(r'@(everyone|here|[!&]?[0-9]{17,21})', r'@\u200b\1', text)
+ return re.sub(r'@(everyone|here|[!&]?[0-9]{17,21})', '@\u200b\\1', text)