fix parsing of inline urls

This commit is contained in:
Shubham Kumar 2022-09-09 23:55:44 +05:30
parent 8b1bfcdf9c
commit 3ed1c81ad8

View File

@ -22,7 +22,7 @@ DEFAULT_DELIMITERS = {
'```': MessageEntityPre
}
DEFAULT_URL_RE = re.compile(r'\[([\S\s]+?)\]\((.+?)\)')
DEFAULT_URL_RE = re.compile(r'\[([^\]]+)\]\(([^)]+)\)')
DEFAULT_URL_FORMAT = '[{0}]({1})'