mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-27 03:51:08 +00:00
Case insensitive suggestions
This commit is contained in:
parent
a23e49c9f3
commit
4c356cbeb4
2 changed files with 3 additions and 1 deletions
|
@ -14,7 +14,7 @@ VERSION = "0.2.0"
|
||||||
PAGE_LENGTH = env("PAGE_LENGTH", 15)
|
PAGE_LENGTH = env("PAGE_LENGTH", 15)
|
||||||
DEFAULT_LANGUAGE = env("DEFAULT_LANGUAGE", "English")
|
DEFAULT_LANGUAGE = env("DEFAULT_LANGUAGE", "English")
|
||||||
|
|
||||||
JS_CACHE = "a47cc2ca"
|
JS_CACHE = "76c5ff1f"
|
||||||
|
|
||||||
# email
|
# email
|
||||||
EMAIL_BACKEND = env("EMAIL_BACKEND", "django.core.mail.backends.smtp.EmailBackend")
|
EMAIL_BACKEND = env("EMAIL_BACKEND", "django.core.mail.backends.smtp.EmailBackend")
|
||||||
|
|
|
@ -42,6 +42,8 @@
|
||||||
|
|
||||||
function getSuggestions(input, trie) {
|
function getSuggestions(input, trie) {
|
||||||
// Follow the trie through the provided input
|
// Follow the trie through the provided input
|
||||||
|
input = input.toLowerCase();
|
||||||
|
|
||||||
input.split("").forEach((letter) => {
|
input.split("").forEach((letter) => {
|
||||||
if (!trie) {
|
if (!trie) {
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue