Compare commits
2 Commits
926bbf927b
...
e153143a7a
Author | SHA1 | Date | |
---|---|---|---|
e153143a7a | |||
04058a3be3 |
9
main.js
9
main.js
@ -238,7 +238,6 @@ function search(word) {
|
|||||||
for (let w in d) {
|
for (let w in d) {
|
||||||
if (d[w].startsWith(word)) {
|
if (d[w].startsWith(word)) {
|
||||||
t = true;
|
t = true;
|
||||||
console.log(searchDictionary[key][value] + " " + d[w]);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (t) {
|
if (t) {
|
||||||
@ -246,6 +245,14 @@ function search(word) {
|
|||||||
break;
|
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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user