From ad18ec75196fb65d0f080d22c807737ba144a324 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Mon, 11 Nov 2024 23:34:08 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/13095 --- app/src/emoji/index.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/emoji/index.ts b/app/src/emoji/index.ts index f220bbde9..8d6810195 100644 --- a/app/src/emoji/index.ts +++ b/app/src/emoji/index.ts @@ -26,10 +26,10 @@ export const unicode2Emoji = (unicode: string, className = "", needSpan = false, return ""; } let emoji = ""; - if (unicode.indexOf(".") > -1) { - emoji = ``; - } else if (unicode.startsWith("api/icon/getDynamicIcon")) { + if (unicode.startsWith("api/icon/getDynamicIcon")) { emoji = ``; + } else if (unicode.indexOf(".") > -1) { + emoji = ``; } else { try { unicode.split("-").forEach(item => {