1
0
Fork 0

Merge pull request #1834 from bookwyrm-social/links-display

Improve link filetype and add availability field
This commit is contained in:
Mouse Reeve 2022-01-17 11:08:40 -08:00 committed by GitHub
commit 8a0ea674ea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 206 additions and 16 deletions

View file

@ -42,6 +42,8 @@
function getSuggestions(input, trie) {
// Follow the trie through the provided input
input = input.toLowerCase();
input.split("").forEach((letter) => {
if (!trie) {
return;
@ -160,6 +162,23 @@ const tries = {
},
},
},
r: {
i: {
n: {
t: {
" ": {
b: {
o: {
o: {
k: "Print book",
},
},
},
},
},
},
},
},
},
},
};