mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-22 04:03:49 +01:00
[backend] Postgres FTS query should be trimmed
This commit is contained in:
parent
c72eb36d66
commit
5b672e20af
@ -29,7 +29,7 @@ const filters = {
|
||||
//TODO: new filters are missing from the filter dropdown, and said dropdown should always show (remove the searchFilters meta prop), also we should fix the null bug
|
||||
|
||||
export function generateFtsQuery(query: SelectQueryBuilder<any>, q: string): void {
|
||||
const components = q.split(" ");
|
||||
const components = q.trim().split(" ");
|
||||
const terms: string[] = [];
|
||||
let finalTerms: string[] = [];
|
||||
let counter = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user