1
0
mirror of https://github.com/simple-icons/simple-icons.git synced 2024-11-16 00:59:07 +02:00

Remove Degree Symbol in Filenames (#4638)

This commit is contained in:
Peter Noble 2021-01-06 16:03:48 +00:00 committed by GitHub
parent 30d6e8d522
commit 41e7601a38
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -44,7 +44,7 @@
{% assign filename = filename | replace: "+", "plus" %}
{% assign filename = filename | replace: ".", "-dot-" %}
{% assign filename = filename | replace: "&", "-and-" %}
{% assign filename = filename | replace: " ", "" | replace: "!", "" | replace: ":", "" | replace: "’", "" | replace: "'", "" %}
{% assign filename = filename | replace: " ", "" | replace: "!", "" | replace: ":", "" | replace: "’", "" | replace: "'", "" | replace: "°", "" %}
{% assign hex = icon.hex %}
{% assign hexCharacter1 = hex | slice: 0, 1 %}

View File

@ -12,7 +12,7 @@ module.exports = {
.replace(/^&/, "and-")
.replace(/&$/, "-and")
.replace(/&/g, "-and-")
.replace(/[ !:’']/g, "")
.replace(/[ !:’'°]/g, "")
.replace(/à|á|â|ã|ä/g, "a")
.replace(/ç|č|ć/g, "c")
.replace(/è|é|ê|ë/g, "e")