From 32a6a5ce30f75a919731338453570d9acfceb4d8 Mon Sep 17 00:00:00 2001 From: mat Date: Mon, 21 Feb 2022 22:42:18 -0600 Subject: Add alt tags to emojis --- src/lib/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib/utils.ts') diff --git a/src/lib/utils.ts b/src/lib/utils.ts index 197bf6b..c581af0 100644 --- a/src/lib/utils.ts +++ b/src/lib/utils.ts @@ -133,7 +133,7 @@ export function twemojiHtml(s: string) { const htmlEncoded = s.replace('<', '<').replace('>', '>').replace('&', '&') // replace unicode emojis with const asTwemoji = htmlEncoded.replace(emojiRegex, (match) => { - return `` + return `${match}` }) return asTwemoji } -- cgit