fix parenthesized expression
This commit is contained in:
@ -6,7 +6,7 @@ export const parseSearchQuery = (query: string): LiqeQuery => {
|
||||
.replace('in:subscription', 'has:subscriptions') // compatibility with old search
|
||||
.replace('in:library', 'no:subscription') // compatibility with old search
|
||||
// wrap the value behind colon in quotes if it's not already
|
||||
.replace(/(\w+):("([^"]+)"|([^"\s]+))/g, '$1:"$3$4"')
|
||||
.replace(/(\w+):("([^"]+)"|([^")\s]+))/g, '$1:"$3$4"')
|
||||
|
||||
return parse(searchQuery)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user