From b3393a60a1903a7f44405c85c8d730c4767b38e1 Mon Sep 17 00:00:00 2001 From: Vincent Batts Date: Tue, 16 Oct 2018 15:37:29 -0400 Subject: [PATCH] emoji: the URL needs to be lowercase to work Signed-off-by: Vincent Batts --- emoji/map.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/emoji/map.go b/emoji/map.go index 9b7711b..10a304c 100644 --- a/emoji/map.go +++ b/emoji/map.go @@ -52,7 +52,7 @@ func UnicodeLinkURL(word string) string { return unicodeURL } - return fmt.Sprintf("%s#%s", unicodeURL, strings.Join(strings.Split(strings.TrimPrefix(strings.ToUpper(word), "U+"), "U+"), "_")) + return fmt.Sprintf("%s#%s", unicodeURL, strings.Join(strings.Split(strings.TrimPrefix(strings.ToLower(word), "u+"), "u+"), "_")) } // CodepointToUnicode takes a "U+26CF" style word and returns the `\U00026CF` formated unicode string