mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-19 15:36:02 +00:00
Forgot to escape backticks.
This commit is contained in:
parent
4d06879669
commit
7b95611e62
@ -405,7 +405,7 @@ def escape_markdown(text, *, as_needed=False, ignore_links=True):
|
||||
return is_url
|
||||
return '\\' + groupdict['markdown']
|
||||
|
||||
regex = r'(?P<markdown>[_\\~|\*])'
|
||||
regex = r'(?P<markdown>[_\\~|\*`])'
|
||||
if ignore_links:
|
||||
regex = '(?:%s|%s)' % (url_regex, regex)
|
||||
return re.sub(regex, replacement, text)
|
||||
|
Loading…
x
Reference in New Issue
Block a user