mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-05 03:22:29 +00:00
Fix markdown regex not supporting [] inside URLs
This commit is contained in:
@@ -21,7 +21,7 @@ DEFAULT_DELIMITERS = {
|
||||
'```': MessageEntityPre
|
||||
}
|
||||
|
||||
DEFAULT_URL_RE = re.compile(r'\[([^\]]+)\]\((.+?)\)')
|
||||
DEFAULT_URL_RE = re.compile(r'\[([\S\s]+?)\]\((.+?)\)')
|
||||
DEFAULT_URL_FORMAT = '[{0}]({1})'
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user