From dbf22073c8d25a2c797eab7b2e9cd58147229f1a Mon Sep 17 00:00:00 2001 From: Etienne Lemay Date: Fri, 10 Mar 2017 11:51:58 -0500 Subject: [PATCH] =?UTF-8?q?Don=E2=80=99t=20include=20keywords=20in=20data?= =?UTF-8?q?=20file=20These=20are=20only=20used=20to=20generate=20the=20sea?= =?UTF-8?q?rch=20string,=20the=20library=20doesn=E2=80=99t=20need=20it.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/build-data.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/scripts/build-data.js b/scripts/build-data.js index 998bc8f..52593fd 100644 --- a/scripts/build-data.js +++ b/scripts/build-data.js @@ -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(',')