Compare commits
No commits in common. "e153143a7a687e35bbd3c544070151970427d916" and "926bbf927bbfefc499c18f672f5e87810f78396e" have entirely different histories.
e153143a7a
...
926bbf927b
9
main.js
9
main.js
@ -238,6 +238,7 @@ 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) {
|
||||||
@ -245,14 +246,6 @@ 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