Skip to content

Commit

Permalink
Make "search by username or email" on user admin page case insensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
ianroberts committed Mar 13, 2024
1 parent b67e615 commit 24b025b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/views/ManageUsers.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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
},
Expand Down

0 comments on commit 24b025b

Please sign in to comment.