mirror of
https://github.com/simple-icons/simple-icons.git
synced 2024-11-26 01:00:27 +02:00
Remove Degree Symbol in Filenames (#4638)
This commit is contained in:
parent
30d6e8d522
commit
41e7601a38
@ -44,7 +44,7 @@
|
|||||||
{% assign filename = filename | replace: "+", "plus" %}
|
{% assign filename = filename | replace: "+", "plus" %}
|
||||||
{% assign filename = filename | replace: ".", "-dot-" %}
|
{% assign filename = filename | replace: ".", "-dot-" %}
|
||||||
{% assign filename = filename | replace: "&", "-and-" %}
|
{% 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 hex = icon.hex %}
|
||||||
{% assign hexCharacter1 = hex | slice: 0, 1 %}
|
{% assign hexCharacter1 = hex | slice: 0, 1 %}
|
||||||
|
@ -12,7 +12,7 @@ module.exports = {
|
|||||||
.replace(/^&/, "and-")
|
.replace(/^&/, "and-")
|
||||||
.replace(/&$/, "-and")
|
.replace(/&$/, "-and")
|
||||||
.replace(/&/g, "-and-")
|
.replace(/&/g, "-and-")
|
||||||
.replace(/[ !:’']/g, "")
|
.replace(/[ !:’'°]/g, "")
|
||||||
.replace(/à|á|â|ã|ä/g, "a")
|
.replace(/à|á|â|ã|ä/g, "a")
|
||||||
.replace(/ç|č|ć/g, "c")
|
.replace(/ç|č|ć/g, "c")
|
||||||
.replace(/è|é|ê|ë/g, "e")
|
.replace(/è|é|ê|ë/g, "e")
|
||||||
|
Loading…
Reference in New Issue
Block a user