mirror of
https://github.com/Mibew/simple-icons.git
synced 2024-11-17 10:54:12 +03:00
commit
031287f7f6
5
index.js
5
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
|
||||
});
|
||||
|
@ -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": [
|
||||
|
Loading…
Reference in New Issue
Block a user