mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 07:07:35 +01:00
Ignore casing when searching for user name in autocomplete
This commit is contained in:
@@ -225,7 +225,11 @@ habitrpg.controller("GroupsCtrl", ['$scope', '$rootScope', 'Shared', 'Groups', '
|
||||
return false;
|
||||
}
|
||||
|
||||
return msg.user.indexOf($scope.query.text) == 0;
|
||||
// Ignore casing when checking for username
|
||||
var user = msg.user.toLowerCase();
|
||||
var text = $scope.query.text.toLowerCase();
|
||||
|
||||
return user.indexOf(text) == 0;
|
||||
}
|
||||
|
||||
$scope.addNewUser = function(user) {
|
||||
|
||||
Reference in New Issue
Block a user