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:
parent
4dc49af65b
commit
b3393a60a1
1 changed files with 1 additions and 1 deletions
|
@ -52,7 +52,7 @@ func UnicodeLinkURL(word string) string {
|
||||||
return unicodeURL
|
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
|
// CodepointToUnicode takes a "U+26CF" style word and returns the `\U00026CF` formated unicode string
|
||||||
|
|
Loading…
Reference in a new issue