mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-02-21 14:05:17 +03:00
Make markdown URL regex less greedy
Fixes multiple URLs in a single message.
This commit is contained in:
parent
551c24f3e4
commit
141b620437
|
@ -22,7 +22,7 @@ DEFAULT_DELIMITERS = {
|
|||
'```': MessageEntityPre
|
||||
}
|
||||
|
||||
DEFAULT_URL_RE = re.compile(r'\[([\s\S]+)\]\((.+)\)')
|
||||
DEFAULT_URL_RE = re.compile(r'\[([\s\S]+?)\]\((.+?)\)')
|
||||
DEFAULT_URL_FORMAT = '[{0}]({1})'
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user