1
0
Fork 1
mirror of https://github.com/elk-zone/elk.git synced 2024-07-03 13:06:47 +01:00

fix: custom emojis

This commit is contained in:
patak 2023-07-06 21:33:01 +02:00
parent 1ee0ec68c5
commit c00354c833

View file

@ -168,7 +168,7 @@ export function recursiveTreeToText(input: Node): string {
return treeToText(input)
}
const emojiIdNeedsWrappingRE = /^(\d|\w|-|_)$/
const emojiIdNeedsWrappingRE = /^(\d|\w|-|_)+$/
export function treeToText(input: Node): string {
let pre = ''