mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-26 11:23:46 +03:00
Fix markdown parsing failing if delimiter was last character
This commit is contained in:
parent
5adec2e1ab
commit
9600a9ea0b
|
@ -84,8 +84,10 @@ def parse(message, delimiters=None):
|
|||
current = Mode.NONE
|
||||
break
|
||||
|
||||
offset += emojiness(message[i])
|
||||
i += 1
|
||||
if i < len(message):
|
||||
offset += emojiness(message[i])
|
||||
i += 1
|
||||
|
||||
if result and not isinstance(result[-1], tuple):
|
||||
result.pop()
|
||||
return message, result
|
||||
|
|
Loading…
Reference in New Issue
Block a user