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