mirror of
https://github.com/bitwarden/browser
synced 2024-12-28 19:02:42 +01:00
strip asterisk from subtitle of cards
This commit is contained in:
parent
cf795bc39c
commit
7dc14a0d18
@ -45,8 +45,8 @@ export class SearchService implements SearchServiceAbstraction {
|
||||
(builder as any).field('subTitle', {
|
||||
boost: 5,
|
||||
extractor: (c: CipherView) => {
|
||||
if (c.type === CipherType.Card && c.subTitle.indexOf('*') === 0) {
|
||||
return c.subTitle.substr(1);
|
||||
if (c.subTitle != null && c.type === CipherType.Card) {
|
||||
return c.subTitle.replace(/\*/g, '');
|
||||
}
|
||||
return c.subTitle;
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user