We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 731839c commit e999ae1Copy full SHA for e999ae1
src/components/FormatMessage/FormatMessage.vue
@@ -179,9 +179,12 @@ export default {
179
emojiSize = onlyEmojis ? 28 : 20
180
}
181
182
- return value.replaceAll(/\p{Emoji}/gu, v => {
183
- return `<span style="font-size: ${emojiSize}px">${v}</span>`
184
- })
+ return value.replaceAll(
+ /[\p{Extended_Pictographic}\u{1F3FB}-\u{1F3FF}\u{1F9B0}-\u{1F9B3}]/gu,
+ v => {
185
+ return `<span style="font-size: ${emojiSize}px">${v}</span>`
186
+ }
187
+ )
188
},
189
containsOnlyEmojis() {
190
const onlyEmojis = this.content.replace(
0 commit comments