1
Fork 0

Fix paths search

This commit is contained in:
Guillaume Gomez 2018-05-03 22:20:57 +02:00
parent fc6b2c5fef
commit d0840fd63b
3 changed files with 38 additions and 1 deletions

View file

@ -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) {