close #13, more or less

This commit is contained in:
remi 2022-06-11 01:41:14 +02:00
parent 285c707290
commit 04058a3be3

View File

@ -238,7 +238,6 @@ function search(word) {
for (let w in d) {
if (d[w].startsWith(word)) {
t = true;
console.log(searchDictionary[key][value] + " " + d[w]);
}
}
if (t) {
@ -246,6 +245,14 @@ function search(word) {
break;
}
}
} else if (words.length > 1 && stripWord(searchDictionary[key][value]).includes(word)) {
result.push(key);
break;
//can still produce false positives, but... very low chance
//i'll fix it once it starts happening...
//(just... re-creating the search tems to actually have spaces should do the trick, right?)
//(yeah, i'll wanna . strip spaces to not be more than one in a row and all that but. H)
//idk. this should be fine for now, and possibly, ever
}
}
}