1
0
Fork 0
mirror of https://github.com/emojisum/emojisum.git synced 2025-07-16 13:50:27 +00:00

emoji: fix merged unicode

for several of the emoji "words", they are a union of unicode points.
Like flags are the two letters together. Female Detective is a number of
connected symbols. This representation needs to be alltogether.

With this update the unicode points are joined, and require spliting on
the "U+". To help with this and be useful as a library there is a
function `emoji.CodepointToUnicode(string) string` to do this now.

Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
Vincent Batts 2018-10-16 14:32:46 -04:00
parent 1d0526c5b6
commit cc9cb5d099
Signed by: vbatts
GPG key ID: 10937E57733F1362
6 changed files with 271 additions and 227 deletions

View file

@ -51,7 +51,7 @@ func main() {
}
func codepointLinkMarkdown(word string) string {
return fmt.Sprintf(`[%s](%s)`, word, emoji.UnicodeLink(word))
return fmt.Sprintf(`[%s](%s)`, word, emoji.UnicodeLinkURL(word))
}
var (