mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-04-25 03:13:43 +03:00
Fix markdown's URL regex not acceping newlines
This commit is contained in:
parent
d5832e4f3b
commit
229cd78df0
|
@ -21,10 +21,7 @@ DEFAULT_DELIMITERS = {
|
||||||
'```': MessageEntityPre
|
'```': MessageEntityPre
|
||||||
}
|
}
|
||||||
|
|
||||||
# Regex used to match r'\[(.+?)\]\((.+?)\)' (for URLs.
|
DEFAULT_URL_RE = re.compile(r'\[([^\]]+)\]\((.+?)\)')
|
||||||
DEFAULT_URL_RE = re.compile(r'\[(.+?)\]\((.+?)\)')
|
|
||||||
|
|
||||||
# Reverse operation for DEFAULT_URL_RE. {0} for text, {1} for URL.
|
|
||||||
DEFAULT_URL_FORMAT = '[{0}]({1})'
|
DEFAULT_URL_FORMAT = '[{0}]({1})'
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user