1
0
mirror of https://github.com/simple-icons/simple-icons.git synced 2024-12-16 01:10:30 +02:00

Merge pull request #907 from simple-icons/develop

Publish fix for #904
This commit is contained in:
Johan Fagerberg 2018-07-26 13:28:54 +02:00 committed by GitHub
commit 031287f7f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View File

@ -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
});

View File

@ -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": [