From 24b025b30dfc03d6b5951d585e186d7f83dfd0b8 Mon Sep 17 00:00:00 2001 From: Ian Roberts Date: Wed, 13 Mar 2024 12:06:22 +0000 Subject: [PATCH] Make "search by username or email" on user admin page case insensitive --- frontend/src/views/ManageUsers.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/views/ManageUsers.vue b/frontend/src/views/ManageUsers.vue index 8802f203..fb7fba1e 100644 --- a/frontend/src/views/ManageUsers.vue +++ b/frontend/src/views/ManageUsers.vue @@ -168,7 +168,7 @@ export default { ...mapActions(["getAllUsers", "adminGetUser", "adminUpdateUser", "adminUpdateUserPassword", "generatePasswordReset", "generateUserActivation", "adminDeleteUser", "adminDeleteUserPersonalInformation"]), searchUsers(users, searchString) { - const regEx = new RegExp(searchString); + const regEx = new RegExp(searchString, "i"); const result = _.filter(users, ({username, email}) => !!username.match(regEx) || !!email.match(regEx)); return result },