mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-29 12:53:44 +03:00
Fix URL regex for markdown was greedy (fix-up)
This commit is contained in:
parent
07ece83aba
commit
3a2c3a9497
|
@ -31,7 +31,7 @@ DEFAULT_DELIMITERS = {
|
||||||
|
|
||||||
# Regex used to match utf-16le encoded r'\[(.+?)\]\((.+?)\)',
|
# Regex used to match utf-16le encoded r'\[(.+?)\]\((.+?)\)',
|
||||||
# reason why there's '\0' after every match-literal character.
|
# 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):
|
def parse(message, delimiters=None, url_re=None):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user