Fix references to snowflakes being max 21 long

This commit is contained in:
Nihaal Sangha
2021-03-02 19:04:03 -05:00
committed by GitHub
parent d01500bccd
commit a3f700c11f
3 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -544,4 +544,4 @@ def escape_mentions(text):
:class:`str`
The text with the mentions removed.
"""
return re.sub(r'@(everyone|here|[!&]?[0-9]{17,21})', '@\u200b\\1', text)
return re.sub(r'@(everyone|here|[!&]?[0-9]{17,20})', '@\u200b\\1', text)