Make URL regex match everything except ]

Hopefully this is the last time I touch this.
This commit is contained in:
Nick80835 2025-03-06 12:35:40 -05:00 committed by Lonami
parent 0c2a3c144b
commit 0fc9b14674

View File

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