mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-27 12:36:14 +01:00
trim search term
This commit is contained in:
parent
b9a15d7ced
commit
e25ad93082
@ -26,7 +26,7 @@ export class SearchCiphersPipe implements PipeTransform {
|
||||
return ciphers;
|
||||
}
|
||||
|
||||
searchText = searchText.toLowerCase();
|
||||
searchText = searchText.trim().toLowerCase();
|
||||
return ciphers.filter((c) => {
|
||||
if (c.name != null && c.name.toLowerCase().indexOf(searchText) > -1) {
|
||||
return true;
|
||||
|
@ -16,7 +16,7 @@ export class SearchPipe implements PipeTransform {
|
||||
return items;
|
||||
}
|
||||
|
||||
searchText = searchText.toLowerCase();
|
||||
searchText = searchText.trim().toLowerCase();
|
||||
return items.filter((i) => {
|
||||
if (prop1 != null && i[prop1] != null && i[prop1].toString().toLowerCase().indexOf(searchText) > -1) {
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user