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

Handle accented brand names (#1439)

* Handle accented brand names.

* Update order of replacement (alphabetic).
This commit is contained in:
David Klebanoff 2019-05-28 14:56:20 -07:00 committed by Eric Cornelissen
parent 23525c2dd9
commit 1fb7581c55

View File

@ -13,5 +13,13 @@ module.exports = {
.replace(/&$/, "-and")
.replace(/&/g, "-and-")
.replace(/[ !’]/g, "")
.replace(/à|á|â|ã|ä/, "a")
.replace(/ç/, "c")
.replace(/è|é|ê|ë/, "e")
.replace(/ì|í|î|ï/, "i")
.replace(/ñ/, "n")
.replace(/ò|ó|ô|õ|ö/, "o")
.replace(/ù|ú|û|ü/, "u")
.replace(/ý|ÿ/, "y")
)
}