mirror of
https://github.com/bitwarden/browser.git
synced 2024-08-25 23:03:07 +02:00
trim lunr query after >
This commit is contained in:
parent
bdbba8c493
commit
1f9fbe43d7
|
@ -97,7 +97,7 @@ export class SearchService implements SearchServiceAbstraction {
|
||||||
const isQueryString = query != null && query.length > 1 && query.indexOf('>') === 0;
|
const isQueryString = query != null && query.length > 1 && query.indexOf('>') === 0;
|
||||||
if (isQueryString) {
|
if (isQueryString) {
|
||||||
try {
|
try {
|
||||||
searchResults = index.search(query.substr(1));
|
searchResults = index.search(query.substr(1).trim());
|
||||||
} catch { }
|
} catch { }
|
||||||
} else {
|
} else {
|
||||||
// tslint:disable-next-line
|
// tslint:disable-next-line
|
||||||
|
|
Loading…
Reference in New Issue
Block a user