From d68af294a2281d02448b9626ee177777715c9162 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Sat, 6 Apr 2019 23:02:49 -0400 Subject: [PATCH] Fix regex substitution in utils.escape_mentions --- discord/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord/utils.py b/discord/utils.py index e277e56c2..0882250c7 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)