Don’t include keywords in data file

These are only used to generate the search string, the library doesn’t need it.
nolan/hinaloe-test
Etienne Lemay 2017-03-10 11:51:58 -05:00
parent 41c9a2ae52
commit dbf22073c8
1 changed files with 1 additions and 3 deletions

View File

@ -52,8 +52,6 @@ emojiData.forEach((datum) => {
keywords = emojiLib.lib[datum.short_name].keywords
}
datum.keywords = keywords
datum.search = []
var addToSearch = (strings, split) => {
(Array.isArray(strings) ? strings : [strings]).forEach((string) => {
@ -69,7 +67,7 @@ emojiData.forEach((datum) => {
addToSearch(datum.short_names, true)
addToSearch(datum.name, true)
addToSearch(datum.keywords, false)
addToSearch(keywords, false)
addToSearch(datum.emoticons, false)
datum.search = datum.search.join(',')