From d703f550c5363bb61b0ae4132d3037b21aad8de9 Mon Sep 17 00:00:00 2001 From: nacaru-w Date: Thu, 22 Jun 2023 18:40:23 +0200 Subject: [PATCH] Improving search system --- src/modules/tags.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/tags.js b/src/modules/tags.js index a2228b0..5af3d65 100644 --- a/src/modules/tags.js +++ b/src/modules/tags.js @@ -145,7 +145,7 @@ const templateDict = { "publicidad": { description: "contenido comercial que defiende proselitismos o propaganda" }, - "PVfan": { + "pvfan": { warning: "aviso no neutralidad|2=PVfan", description: "escritos poco neutrales, con punto de vista fanático" }, @@ -236,7 +236,7 @@ function createFormWindow() { function updateList(searchString) { for (let i = 0; i < allCheckboxDivs.length; i++) { let checkboxText = allCheckboxDivs[i].childNodes[1].innerText - if (checkboxText.includes(searchString)) { + if (checkboxText.includes(searchString.toLowerCase()) || checkboxText.includes(searchString.toUpperCase())) { const div = allCheckboxDivs[i]; div.style.display = ''; }