mirror of
https://github.com/bitwarden/browser
synced 2025-12-15 15:53:27 +00:00
Added custom field consideration to basic search function
This commit is contained in:
@@ -164,6 +164,20 @@ export class SearchService implements SearchServiceAbstraction {
|
||||
if (c.login && c.login.uri != null && c.login.uri.toLowerCase().indexOf(query) > -1) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
if(c.hasFields){
|
||||
for (let field of c.fields) {
|
||||
if (field.value.toLowerCase().indexOf(query) > -1) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if(field.name.toLowerCase().indexOf(query) > -1) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user