Skip to content

Conversation

ayaankhan28
Copy link
Contributor

No description provided.

src/index.ts Outdated
Comment on lines 22 to 29
packages.forEach((pkg) => {
if (!results.includes(pkg.name)) {
const matchesAlias = pkg.aliases?.some(
(alias) => fuzzy.match(term, alias) !== null
);
if (matchesAlias) results.push(name);
if (matchesAlias) results.push(pkg.name);
}
});
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Replace this with server side SQL fuzzy search perhaps?

@cloudycotton
Copy link
Collaborator

You can work on the server and push changes!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants