Fix paths search
This commit is contained in:
parent
fc6b2c5fef
commit
d0840fd63b
3 changed files with 38 additions and 1 deletions
|
@ -993,7 +993,7 @@
|
|||
Math.min(results_returned[fullId].lev, returned);
|
||||
}
|
||||
if (index !== -1 || lev <= MAX_LEV_DISTANCE) {
|
||||
if (index !== -1) {
|
||||
if (index !== -1 && paths.length < 2) {
|
||||
lev = 0;
|
||||
}
|
||||
if (results[fullId] === undefined) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue