mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-26 14:43:24 +00:00
Improve results a bit
This commit is contained in:
parent
6351ebb7e5
commit
97c18f420e
@ -926,8 +926,12 @@
|
||||
}
|
||||
|
||||
lev += lev_add;
|
||||
if (searchWords[j].startsWith(val)) {
|
||||
lev -= 1;
|
||||
if (lev > 0 && val.length > 3 && searchWords[j].startsWith(val)) {
|
||||
if (val.length < 6) {
|
||||
lev -= 1;
|
||||
} else {
|
||||
lev = 0;
|
||||
}
|
||||
}
|
||||
if (in_args <= MAX_LEV_DISTANCE) {
|
||||
if (results_in_args[fullId] === undefined) {
|
||||
|
Loading…
Reference in New Issue
Block a user