Make URL regex match everything except ]

Hopefully this is the last time I touch this.
This commit is contained in:
Nick80835
2025-03-07 08:03:31 +01:00
committed by Lonami
parent 0c2a3c144b
commit 0fc9b14674
+1 -1
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})'