mirror of
https://github.com/bitwarden/browser.git
synced 2025-01-21 21:11:35 +01:00
normalize site search with lowercase
This commit is contained in:
parent
eb26370f4d
commit
09115610f7
@ -70,8 +70,15 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
return function (site) {
|
return function (site) {
|
||||||
return (site.name && site.name.indexOf($scope.searchText) !== -1) ||
|
var searchTerm = $scope.searchText.toLowerCase();
|
||||||
(site.username && site.username.indexOf($scope.searchText) !== -1);
|
if (site.name && site.name.toLowerCase().indexOf(searchTerm) !== -1) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (site.username && site.username.toLowerCase().indexOf(searchTerm) !== -1) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user