From ea85fc1b52ef2d7c3d33db04e8baeb8728c29f47 Mon Sep 17 00:00:00 2001 From: Julien Bisconti Date: Mon, 13 Aug 2018 09:54:14 +0200 Subject: [PATCH] Table: emoji url might be null --- build.js | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/build.js b/build.js index a921f9e..5c8d621 100644 --- a/build.js +++ b/build.js @@ -80,7 +80,7 @@ const emojify = text => { const result = text.replace(colonWrapped, match => { const name = match.replace(/:/g, ''); const url = emojiMapURL[name]; - return `${name}`; + return url ? `${name}` : match; }); return result || text; }; @@ -117,17 +117,11 @@ const formatEntry = ( description, homepage, stargazers_count: stargazers, - // subscribers_count: watchers, pushed_at: updated, - // open_issues: issues, - // forks, language, license, owner, categoryName, - // categoryDescription, - // status, - // ownerType, }, i, ) => @@ -171,8 +165,8 @@ const buttonHTLM = valueNames const processMetadata = metaData => [ `
`, - ``, - `

Sort by

${buttonHTLM}
`, + ``, + `

Sort by

${buttonHTLM}
`, `
`, '