From 5fad43fcfbd2ce470fec6de3a61ff3aa01cc2640 Mon Sep 17 00:00:00 2001 From: 007 <65741741+6gx7iycn53ioq2e8apk1j1ypwov4giui@users.noreply.github.com> Date: Thu, 4 Feb 2021 22:41:42 +0000 Subject: [PATCH] fix: allow hyphen on search term (#4731) --- ts/state/ducks/search.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ts/state/ducks/search.ts b/ts/state/ducks/search.ts index 7cdab85821..4976649f23 100644 --- a/ts/state/ducks/search.ts +++ b/ts/state/ducks/search.ts @@ -282,7 +282,7 @@ async function queryConversationsAndContacts( } ) { const { ourConversationId, noteToSelf } = options; - const query = providedQuery.replace(/[+-.()]*/g, ''); + const query = providedQuery.replace(/[+.()]*/g, ''); const searchResults: Array = await dataSearchConversations( query