From de5f7da1392cef49d4426a89a3a01711b02086d3 Mon Sep 17 00:00:00 2001 From: David Haukeness Date: Sat, 26 Oct 2019 14:54:43 -0600 Subject: [PATCH] fixed error where unicode emojis were missing --- emojiMap.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/emojiMap.go b/emojiMap.go index d532b4e..ea8876c 100644 --- a/emojiMap.go +++ b/emojiMap.go @@ -15,12 +15,12 @@ type emojiData struct { } func emojiUnicodeConvert(s string) string { - re := regexp.MustCompile(`:\w+:`) + re := regexp.MustCompile(`:(\w+|([+-]\d)):`) return re.ReplaceAllStringFunc(s, renderUnicodeEmoji) } func resolveRootEmojis(s string) string { - re := regexp.MustCompile(`:\w+:`) + re := regexp.MustCompile(`:(\w+|([+-]\d)):`) return re.ReplaceAllStringFunc(s, emojiRootLookup) }