Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
joshblum committed Apr 2, 2020
1 parent b19aa85 commit d67f8bf
Show file tree
Hide file tree
Showing 2 changed files with 7,480 additions and 7,476 deletions.
4 changes: 4 additions & 0 deletions cmd/generateEmojiCodeMap/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"log"
"os"
"sort"
"strings"
"text/template"
)

Expand Down Expand Up @@ -85,6 +86,9 @@ func createCodeMap() (map[string]string, map[string][]string, error) {
log.Printf("creating reverse emoji code map")
emojiRevCodeMap := make(map[string][]string)
for shortName, unicode := range emojiCodeMap {
unicode = strings.ToLower(unicode)
// normalize emojiCodeMap unicodee
emojiCodeMap[shortName] = unicode
emojiRevCodeMap[unicode] = append(emojiRevCodeMap[unicode], shortName)
}

Expand Down
Loading

0 comments on commit d67f8bf

Please sign in to comment.