mirror of
https://github.com/flynx/photographer.ru-bot-tg2vk.git
synced 2025-10-28 10:40:09 +00:00
minor fix...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
4d337eb8f1
commit
a627352bdc
2
bot.py
2
bot.py
@ -26,7 +26,7 @@ import re
|
|||||||
def html2md(text):
|
def html2md(text):
|
||||||
text = re.sub(r'<b>(.*)</b>', r'*\1*', text, flags=re.I|re.M)
|
text = re.sub(r'<b>(.*)</b>', r'*\1*', text, flags=re.I|re.M)
|
||||||
text = re.sub(r'<i>(.*)</i>', r'_\1_', text, flags=re.I|re.M)
|
text = re.sub(r'<i>(.*)</i>', r'_\1_', text, flags=re.I|re.M)
|
||||||
text = re.sub(r'<a\s+[ˆ>]*href="(.*)"[ˆ>]*>(.*)</a>', r'[\2](\1)', text, flags=re.I|re.M)
|
text = re.sub(r'<a\s+[^>]*href="(.*)"[^>]*>(.*)</a>', r'[\2](\1)', text, flags=re.I|re.M)
|
||||||
return text
|
return text
|
||||||
|
|
||||||
def load(name):
|
def load(name):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user