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:
parent
b068b08653
commit
d2503caa4a
@ -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([]);
|
||||
|
Loading…
Reference in New Issue
Block a user