mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-04 00:55:19 +00:00
Fix regex substitution in utils.escape_mentions
This commit is contained in:
@ -405,4 +405,4 @@ def escape_mentions(text):
|
|||||||
:class:`str`
|
:class:`str`
|
||||||
The text with the mentions removed.
|
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)
|
||||||
|
Reference in New Issue
Block a user