1
0
mirror of https://github.com/simple-icons/simple-icons.git synced 2024-11-26 01:00:27 +02:00

Apply trim() on the search input

This commit is contained in:
nietonfir 2017-07-09 23:04:04 +02:00
parent f1b7c69593
commit 69ae7706aa

View File

@ -521,7 +521,7 @@
}
function search(value) {
value = value.toLowerCase();
value = value.toLowerCase().trim();
icons.forEach(function(e, i) {
if (e.indexOf(value) > -1) {