1
0
Fork 0
mirror of https://github.com/anyproto/anytype-kotlin.git synced 2025-06-08 05:47:05 +09:00

DROID-2075 App | Fix | Fix crash in emojifier (#720)

This commit is contained in:
Evgenii Kozlov 2023-12-19 23:06:15 +01:00 committed by konstantiniiv
parent b52219a99e
commit 5879cfa570

View file

@ -42,7 +42,7 @@ object Emojifier {
try {
var result = search(unicode)
if (result == null) {
if (unicode.last() == SEPARATOR) {
if (unicode.lastOrNull() == SEPARATOR) {
val sb = StringBuilder()
unicode.forEachIndexed { index, char ->
if (index < unicode.length.dec()) sb.append(char)