Skip to content

Commit 925f701

Browse files
Update formatting.py
1 parent 5b279b7 commit 925f701

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎telebot/formatting.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ def escape_markdown(content: str) -> str:
6161
:rtype: :obj:`str`
6262
"""
6363

64-
parse = re.sub(r"([_*\[\]()~`>\#\+\-=|\.!])", r"\\\1", content)
65-
reparse = re.sub(r"\\\\([_*\[\]()~`>\#\+\-=|\.!])", r"\1", parse)
64+
parse = re.sub(r"([_*\[\]()~`>\#\+\-=|\.!\{}])", r"\\\1", content)
65+
reparse = re.sub(r"\\\\([_*\[\]()~`>\#\+\-=|\.!\{}])", r"\1", parse)
6666
return reparse
6767

6868

@@ -323,4 +323,4 @@ def hide_link(url: str) -> str:
323323
:return: The hidden url.
324324
:rtype: :obj:`str`
325325
"""
326-
return f'<a href="{url}">&#8288;</a>'
326+
return f'<a href="{url}">&#8288;</a>'

0 commit comments

Comments
 (0)