Make URL regex match anything again

Including spaces.
This commit is contained in:
Nick80835 2025-03-05 07:52:12 -05:00 committed by Lonami
parent a03a8673e1
commit 0c2a3c144b

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