Make URL regex match anything again

Including spaces.
This commit is contained in:
Nick80835 2025-03-05 07:52:12 -05:00
parent a03a8673e1
commit 6e4b6bdca8

View File

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