From 423fc4ac8098a6f2ede05013ede76fc811bec369 Mon Sep 17 00:00:00 2001 From: Harvey Tindall Date: Tue, 27 Jun 2023 07:35:28 +0100 Subject: [PATCH] accounts: non-case sensitive search --- ts/modules/accounts.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/ts/modules/accounts.ts b/ts/modules/accounts.ts index b079c5c..3a56bce 100644 --- a/ts/modules/accounts.ts +++ b/ts/modules/accounts.ts @@ -462,15 +462,15 @@ class user implements User { } matchesSearch = (query: string): boolean => { + console.log(this.name, "matches", query, ":", this.name.includes(query)); return ( - this.name.includes(query) || - this.label.includes(query) || - this.discord.includes(query) || - this.email.includes(query) || this.id.includes(query) || - this.label.includes(query) || - this.matrix.includes(query) || - this.telegram.includes(query) + this.name.toLowerCase().includes(query) || + this.label.toLowerCase().includes(query) || + this.email.toLowerCase().includes(query) || + this.discord.toLowerCase().includes(query) || + this.matrix.toLowerCase().includes(query) || + this.telegram.toLowerCase().includes(query) ); }