mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-08 04:52:30 +00:00
Fix markdown URL parsing using character index instead offset
This commit is contained in:
@@ -134,7 +134,7 @@ def parse(message, delimiters=None, url_re=None):
|
||||
emoji_len = sum(emojiness(c) for c in url_match.group(1))
|
||||
result.append((
|
||||
offset,
|
||||
i + emoji_len,
|
||||
offset + emoji_len,
|
||||
(Mode.URL, url_match.group(2))
|
||||
))
|
||||
i += len(url_match.group(1))
|
||||
|
Reference in New Issue
Block a user