Browse Source

Fix regex substitution in utils.escape_mentions

pull/2049/head
Rapptz 6 years ago
parent
commit
d68af294a2
  1. 2
      discord/utils.py

2
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)

Loading…
Cancel
Save