1
0
mirror of https://github.com/simple-icons/simple-icons.git synced 2025-07-12 22:21:23 +02:00

Disallow underscores in slugs & filenames (#4921)

This commit is contained in:
Eric Cornelissen
2021-02-19 17:16:19 +01:00
committed by GitHub
parent 2727697c16
commit 54f9ceff75
3 changed files with 3 additions and 2 deletions

View File

@ -27,7 +27,7 @@ module.exports = {
.replace(/ŧ/g, "t")
.normalize("NFD")
.replace(/[\u0300-\u036f]/g, "")
.replace(/[^a-z0-9_\-]/g, "")
.replace(/[^a-z0-9\-]/g, "")
),
/**