From 7add3ea47329a566e800d05cc6ed2a23d0b36935 Mon Sep 17 00:00:00 2001 From: "Navy.gif" Date: Fri, 16 Feb 2024 12:37:23 +0200 Subject: [PATCH] make case insensitive --- src/server/components/UserDatabase.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/components/UserDatabase.ts b/src/server/components/UserDatabase.ts index 442ca7d..0c2c942 100644 --- a/src/server/components/UserDatabase.ts +++ b/src/server/components/UserDatabase.ts @@ -164,7 +164,7 @@ class UserDatabase implements UserDatabaseInterface if (name) { if (partialName) - query.name = { $regex: name }; + query.name = { $regex: name, $options: 'i' }; else query.name = { $regex: `^${name}$`, $options: 'i' }; }