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:
parent
e1292a0780
commit
423fc4ac80
@ -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)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user