From d5e488288f857e6345dc2c42421a78cb6887a052 Mon Sep 17 00:00:00 2001 From: Emil Miler Date: Mon, 12 Dec 2022 15:05:03 +0100 Subject: [PATCH] =?UTF-8?q?Odstran=C4=9Bn=C3=AD=20redundantn=C3=ADho=20.to?= =?UTF-8?q?LowerCase()?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/search.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/search.html b/templates/search.html index ddd90ef..e579adb 100644 --- a/templates/search.html +++ b/templates/search.html @@ -29,7 +29,7 @@ function filter_name(str) { if (str.length==0) { articles.forEach(article => article.style.display = "flex"); } else { - articles.forEach(article => article.style.display = article.dataset.title.indexOf(str.toLowerCase()) === -1 ? "none" : "flex"); + articles.forEach(article => article.style.display = article.dataset.title.indexOf(str) === -1 ? "none" : "flex"); } }