Fix some MD parsing of inline URLs (#3920)

This commit is contained in:
Shubham Kumar 2022-09-10 01:16:06 +05:30 committed by GitHub
parent 6e8bc0d5b9
commit 935be9dd6e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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})'