fix: allow hyphen on search term (#4731)

This commit is contained in:
007 2021-02-04 22:41:42 +00:00 committed by GitHub
parent d93e66813d
commit 5fad43fcfb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -282,7 +282,7 @@ async function queryConversationsAndContacts(
}
) {
const { ourConversationId, noteToSelf } = options;
const query = providedQuery.replace(/[+-.()]*/g, '');
const query = providedQuery.replace(/[+.()]*/g, '');
const searchResults: Array<DBConversationType> = await dataSearchConversations(
query