Odstranění redundantního .toLowerCase()

This commit is contained in:
Emil Miler 2022-12-12 15:05:03 +01:00
parent ad108e5c8d
commit d5e488288f

View File

@ -29,7 +29,7 @@ function filter_name(str) {
if (str.length==0) { if (str.length==0) {
articles.forEach(article => article.style.display = "flex"); articles.forEach(article => article.style.display = "flex");
} else { } 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");
} }
} }
</script> </script>