mirror of
https://github.com/Mibew/simple-icons.git
synced 2025-05-02 09:06:43 +03:00
Merge pull request #909 from RedSparr0w/patch-1
Page search find .NET Google+ etc
This commit is contained in:
commit
e8fe89ef27
@ -177,7 +177,12 @@
|
|||||||
</script>
|
</script>
|
||||||
<script>
|
<script>
|
||||||
function normalizeSearchTerm(value) {
|
function normalizeSearchTerm(value) {
|
||||||
return value.toLowerCase().replace(/ /g, '');
|
return value.toLowerCase()
|
||||||
|
.replace(/\+/g, "plus")
|
||||||
|
.replace(/^\./, "dot-")
|
||||||
|
.replace(/\.$/, "-dot")
|
||||||
|
.replace(/\./g, "-dot-")
|
||||||
|
.replace(/[ !’]/g, '');
|
||||||
}
|
}
|
||||||
var icons = [{{ allIconNames }}].map(normalizeSearchTerm);
|
var icons = [{{ allIconNames }}].map(normalizeSearchTerm);
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
Reference in New Issue
Block a user