mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-03 10:40:16 +00:00
Fix unparsing of message.text (#4301)
Co-authored-by: Disk6969 <disk6969@users.noreply.github.com>
This commit is contained in:
@@ -58,7 +58,7 @@ def within_surrogate(text, index, *, length=None):
|
||||
|
||||
return (
|
||||
1 < index < len(text) and # in bounds
|
||||
'\ud800' <= text[index - 1] <= '\udfff' and # previous is
|
||||
'\ud800' <= text[index - 1] <= '\udbff' and # previous is
|
||||
'\ud800' <= text[index] <= '\udfff' # current is
|
||||
)
|
||||
|
||||
|
Reference in New Issue
Block a user