Skip to content

Commit

Permalink
Improving search system
Browse files Browse the repository at this point in the history
  • Loading branch information
nacaru-w committed Jun 22, 2023
1 parent bd227fd commit d703f55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/tags.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down Expand Up @@ -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 = '';
}
Expand Down

0 comments on commit d703f55

Please sign in to comment.