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
1 changed files with 1 additions and 1 deletions

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