mirror of
https://github.com/Mibew/simple-icons.git
synced 2025-01-18 08:01:08 +03:00
Apply trim() on the search input
This commit is contained in:
parent
f1b7c69593
commit
69ae7706aa
@ -521,7 +521,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
function search(value) {
|
function search(value) {
|
||||||
value = value.toLowerCase();
|
value = value.toLowerCase().trim();
|
||||||
|
|
||||||
icons.forEach(function(e, i) {
|
icons.forEach(function(e, i) {
|
||||||
if (e.indexOf(value) > -1) {
|
if (e.indexOf(value) > -1) {
|
||||||
|
Loading…
Reference in New Issue
Block a user