mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
by default we want to search in the inbox if no in: is specified
This commit is contained in:
parent
c21ba9e11f
commit
47aa2eaae5
1 changed files with 5 additions and 0 deletions
|
|
@ -10,5 +10,10 @@ export const parseSearchQuery = (query: string): LiqeQuery => {
|
|||
// remove any quotes that are in the array value for example: label:"test","test2" -> label:"test,test2"
|
||||
.replace(/","/g, ',')
|
||||
|
||||
// by default we want to search in the inbox if no in: is specified
|
||||
if (!searchQuery.includes('in:')) {
|
||||
return parse(`(${searchQuery}) in:inbox`)
|
||||
}
|
||||
|
||||
return parse(searchQuery)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue