1
0
mirror of https://github.com/hrfee/jfa-go.git synced 2024-12-23 01:20:11 +00:00

accounts: non-case sensitive search

This commit is contained in:
Harvey Tindall 2023-06-27 07:35:28 +01:00
parent e1292a0780
commit 423fc4ac80
Signed by: hrfee
GPG Key ID: BBC65952848FB1A2

View File

@ -462,15 +462,15 @@ class user implements User {
} }
matchesSearch = (query: string): boolean => { matchesSearch = (query: string): boolean => {
console.log(this.name, "matches", query, ":", this.name.includes(query));
return ( return (
this.name.includes(query) ||
this.label.includes(query) ||
this.discord.includes(query) ||
this.email.includes(query) ||
this.id.includes(query) || this.id.includes(query) ||
this.label.includes(query) || this.name.toLowerCase().includes(query) ||
this.matrix.includes(query) || this.label.toLowerCase().includes(query) ||
this.telegram.includes(query) this.email.toLowerCase().includes(query) ||
this.discord.toLowerCase().includes(query) ||
this.matrix.toLowerCase().includes(query) ||
this.telegram.toLowerCase().includes(query)
); );
} }