Fix unparsing of message.text (#4301)

Co-authored-by: Disk6969 <[email protected]>
This commit is contained in:
Prashant Sengar
2024-01-20 10:42:13 +01:00
committed by GitHub
co-authored by Disk6969
parent 6187ff7dcb
commit 63d9b267f4
+1 -1
View File
@@ -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
)