mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-08 04:52:30 +00:00
Fix URL regex for markdown was greedy (fix-up)
This commit is contained in:
@@ -31,7 +31,7 @@ DEFAULT_DELIMITERS = {
|
||||
|
||||
# Regex used to match utf-16le encoded r'\[(.+?)\]\((.+?)\)',
|
||||
# reason why there's '\0' after every match-literal character.
|
||||
DEFAULT_URL_RE = re.compile(b'\\[\0(.+)\\]\0\\(\0(.+?)\\)\0')
|
||||
DEFAULT_URL_RE = re.compile(b'\\[\0(.+?)\\]\0\\(\0(.+?)\\)\0')
|
||||
|
||||
|
||||
def parse(message, delimiters=None, url_re=None):
|
||||
|
Reference in New Issue
Block a user