Skip to content

Commit

Permalink
Merge pull request #407 from GateNLP/user-search-case-insensitive
Browse files Browse the repository at this point in the history
Make user search case insensitive
  • Loading branch information
ianroberts authored Mar 13, 2024
2 parents b67e615 + 24b025b commit 4585c71
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 4585c71

Please sign in to comment.