1
0
Fork 0
mirror of https://github.com/emojisum/emojisum.git synced 2024-11-15 20:28:37 +00:00

emoji: the URL needs to be lowercase to work

Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
Vincent Batts 2018-10-16 15:37:29 -04:00
parent 4dc49af65b
commit b3393a60a1
Signed by: vbatts
GPG key ID: 10937E57733F1362

View file

@ -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