From 69ae7706aa43e9dc6e222edfeb285f3610869a71 Mon Sep 17 00:00:00 2001 From: nietonfir Date: Sun, 9 Jul 2017 23:04:04 +0200 Subject: [PATCH] Apply trim() on the search input --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index f074d89a..53b88187 100644 --- a/index.html +++ b/index.html @@ -521,7 +521,7 @@ } function search(value) { - value = value.toLowerCase(); + value = value.toLowerCase().trim(); icons.forEach(function(e, i) { if (e.indexOf(value) > -1) {