mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-27 12:36:14 +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) {
|
if (this.onlySearchName) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (c.id.substr(0, 8) === searchText) {
|
if (searchText.length >= 8 && c.id.startsWith(searchText)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if (c.subTitle != null && c.subTitle.toLowerCase().indexOf(searchText) > -1) {
|
if (c.subTitle != null && c.subTitle.toLowerCase().indexOf(searchText) > -1) {
|
||||||
|
Loading…
Reference in New Issue
Block a user