mirror of
https://github.com/bitwarden/browser
synced 2025-01-27 19:49:42 +01:00
optimize id search
This commit is contained in:
parent
1a2b8684e2
commit
152c44185b
@ -36,7 +36,7 @@ export class SearchCiphersPipe implements PipeTransform {
|
||||
if (this.onlySearchName) {
|
||||
return false;
|
||||
}
|
||||
if (c.id.substr(0, 8) === searchText) {
|
||||
if (searchText.length >= 8 && c.id.startsWith(searchText)) {
|
||||
return true;
|
||||
}
|
||||
if (c.subTitle != null && c.subTitle.toLowerCase().indexOf(searchText) > -1) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user