mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-06-07 04:17:16 +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 is_url
|
||||||
return '\\' + groupdict['markdown']
|
return '\\' + groupdict['markdown']
|
||||||
|
|
||||||
regex = r'(?P<markdown>[_\\~|\*])'
|
regex = r'(?P<markdown>[_\\~|\*`])'
|
||||||
if ignore_links:
|
if ignore_links:
|
||||||
regex = '(?:%s|%s)' % (url_regex, regex)
|
regex = '(?:%s|%s)' % (url_regex, regex)
|
||||||
return re.sub(regex, replacement, text)
|
return re.sub(regex, replacement, text)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user