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:
parent
23525c2dd9
commit
1fb7581c55
@ -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")
|
||||
)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user