make fuzzy search stricter (#505)

Co-authored-by: neil molina <neil@neils-MacBook-Pro.local>
This commit is contained in:
Neil 2023-04-26 09:56:30 +08:00 committed by GitHub
parent f4939bee51
commit 0e7147d91f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -129,7 +129,9 @@ To read more about this package go to [${guiPkg.homepage}](${guiPkg.homepage}).
}
packagesIndex = new Fuse(guiPkgs, {
keys: ["name", "full_name", "desc", "categories"]
keys: ["name", "full_name", "desc", "categories"],
minMatchCharLength: 3,
threshold: 0.3
});
log.info("refreshed packages fuse index");