Merge pull request #1834 from bookwyrm-social/links-display
Improve link filetype and add availability field
This commit is contained in:
@ -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",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
|
Reference in New Issue
Block a user