Fix references to snowflakes being max 21 long

This commit is contained in:
Nihaal Sangha authored and GitHub committed 2021-03-02 19:04:03 -05:00
1 parent d01500bccd
commit a3f700c11f
3 files changed
+6 -6

No files matched your search

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