mirror of
https://github.com/Mibew/simple-icons.git
synced 2024-11-17 10:54:12 +03:00
Merge pull request #910 from simple-icons/develop
Publish fix to page search
This commit is contained in:
commit
b8d084115d
@ -177,7 +177,12 @@
|
||||
</script>
|
||||
<script>
|
||||
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);
|
||||
</script>
|
||||
|
Loading…
Reference in New Issue
Block a user