From 6e60021f5594f87603b9155fb605f9ef4db6f750 Mon Sep 17 00:00:00 2001 From: Johan Fagerberg Date: Thu, 26 Jul 2018 12:56:00 +0200 Subject: [PATCH 1/2] Update index.js filename mapping to match site Updates index.js filename mapping to match the Jekyll implementation. This was missed in #888 (we should implement tests to avoid this in the future). The JS implementation is a direct translation of the Jekyll one. Closes #904 --- index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 2a60bc88..9d40cefa 100644 --- a/index.js +++ b/index.js @@ -7,7 +7,10 @@ const icons = {}; data.icons.forEach(i => { const filename = i.title.toLowerCase() .replace(/\+/g, "plus") - .replace(/[ .\-!’]/g, ''); + .replace(/^\./, "dot-") + .replace(/\.$/, "-dot") + .replace(/\./g, "-dot-") + .replace(/[ !’]/g, ''); i.svg = fs.readFileSync(`${__dirname}/icons/${filename}.svg`, 'utf8'); icons[i.title] = i }); From 1ce7d3a563e667438aa8d25736794a1809887eaa Mon Sep 17 00:00:00 2001 From: Johan Fagerberg Date: Thu, 26 Jul 2018 13:26:50 +0200 Subject: [PATCH 2/2] Version bump --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index a7ff1191..a7eb60ab 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "simple-icons", - "version": "1.7.0", + "version": "1.7.1", "description": "SVG icons for popular brands https://simpleicons.org", "homepage": "https://www.simpleicons.org", "keywords": [