Make search operators case insensitive.
In light of the fact that all searching against the database is done using ILIKE pattern matching, the only truly case-sensitive part of the search query was search operator keys. Rather than lowercase the keys in `criteria` before returning, we instead lowercase the entire search string at the beginning of parsing. This will further enforce case-insensitivity on the design of search going forward.remotes/1693045480750635534/spooky-22
parent
e2cd25db67
commit
f7a59f4672
|
@ -12,7 +12,7 @@ valid_params=[
|
|||
]
|
||||
|
||||
def searchparse(text):
|
||||
|
||||
text = text.lower()
|
||||
|
||||
criteria = {x[0]:x[1] for x in query_regex.findall(text)}
|
||||
|
||||
|
|
Loading…
Reference in New Issue