Improve results a bit
This commit is contained in:
@@ -926,8 +926,12 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
lev += lev_add;
|
lev += lev_add;
|
||||||
if (searchWords[j].startsWith(val)) {
|
if (lev > 0 && val.length > 3 && searchWords[j].startsWith(val)) {
|
||||||
|
if (val.length < 6) {
|
||||||
lev -= 1;
|
lev -= 1;
|
||||||
|
} else {
|
||||||
|
lev = 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (in_args <= MAX_LEV_DISTANCE) {
|
if (in_args <= MAX_LEV_DISTANCE) {
|
||||||
if (results_in_args[fullId] === undefined) {
|
if (results_in_args[fullId] === undefined) {
|
||||||
|
|||||||
Reference in New Issue
Block a user