diff --git a/index.js b/index.js index 2a60bc884..9d40cefa3 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 }); diff --git a/package.json b/package.json index a7ff11912..a7eb60ab8 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": [