mirror of
https://github.com/versia-pub/frontend.git
synced 2025-12-06 08:28:20 +01:00
fix: 🐛 Also render emojis with uppercase letters
This commit is contained in:
parent
2572392571
commit
0f22f94355
|
|
@ -36,7 +36,7 @@ export const useParsedContent = (
|
|||
|
||||
for (const paragraph of paragraphs) {
|
||||
paragraph.innerHTML = paragraph.innerHTML.replace(
|
||||
/:([a-z0-9_-]+):/g,
|
||||
/:([a-zA-Z0-9_-]+):/g,
|
||||
(match, emoji) => {
|
||||
const emojiData = toValue(emojis).find(
|
||||
(e) => e.shortcode === emoji,
|
||||
|
|
|
|||
Loading…
Reference in a new issue