diff --git a/src/components/FormatMessage/FormatMessage.vue b/src/components/FormatMessage/FormatMessage.vue index 6b1f241d..164a590e 100644 --- a/src/components/FormatMessage/FormatMessage.vue +++ b/src/components/FormatMessage/FormatMessage.vue @@ -179,9 +179,12 @@ export default { emojiSize = onlyEmojis ? 28 : 20 } - return value.replaceAll(/\p{Emoji}/gu, v => { - return `${v}` - }) + return value.replaceAll( + /[\p{Extended_Pictographic}\u{1F3FB}-\u{1F3FF}\u{1F9B0}-\u{1F9B3}]/gu, + v => { + return `${v}` + } + ) }, containsOnlyEmojis() { const onlyEmojis = this.content.replace(