mirror of
https://github.com/eternnoir/pyTelegramBotAPI.git
synced 2023-08-10 21:12:57 +03:00
Compare commits
2 Commits
0f52ca688f
...
e10517e088
Author | SHA1 | Date | |
---|---|---|---|
|
e10517e088 | ||
|
1946393c36 |
@ -61,8 +61,8 @@ def escape_markdown(content: str) -> str:
|
|||||||
:rtype: :obj:`str`
|
:rtype: :obj:`str`
|
||||||
"""
|
"""
|
||||||
|
|
||||||
parse = re.sub(r"([_*\[\]()~`>\#\+\-=|\.!\{\}])", r"\\\1", content)
|
parse = re.sub(r"([_*\[\]()~`>\#\+\-=|\.!\{\}\\])", r"\\\1", content)
|
||||||
reparse = re.sub(r"\\\\([_*\[\]()~`>\#\+\-=|\.!\{\}])", r"\1", parse)
|
reparse = re.sub(r"\\\\([_*\[\]()~`>\#\+\-=|\.!\{\}\\])", r"\1", parse)
|
||||||
return reparse
|
return reparse
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user