1
0
mirror of https://github.com/ryanoasis/nerd-fonts.git synced 2024-12-19 20:12:52 +02:00

cheat-sheet: fix negative boost for removed icons

This commit is contained in:
rszyma 2023-05-30 14:47:36 +02:00 committed by Fini Jastrow
parent b068b08653
commit d2503caa4a

View File

@ -134,14 +134,11 @@ document.addEventListener('DOMContentLoaded', function () {
{
prefix: true,
combineWith: "AND",
boostDocument: ((documentId, term, storedFields) => {
return storedFields.isRemoved ? 0.001 : 1
}),
}
);
remainingSearchResults.sort((a, b) => {
if (a.isRemoved != b.isRemoved) {
return a.isRemoved > b.isRemoved
}
return a.id > b.id
})
console.log(`search: ${remainingSearchResults.length} results found`);
elementGlyphCheatSheet.replaceChildren([]);