diff --git a/src/search/extended/parseQuery.js b/src/search/extended/parseQuery.js index bfceb135b..507dd7486 100644 --- a/src/search/extended/parseQuery.js +++ b/src/search/extended/parseQuery.js @@ -22,7 +22,7 @@ const searchers = [ const searchersLen = searchers.length // Regex to split by spaces, but keep anything in quotes together -const SPACE_RE = / +(?=([^\"]*\"[^\"]*\")*[^\"]*$)/ +const SPACE_RE = / +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/ const OR_TOKEN = '|' // Return a 2D array representation of the query, for simpler parsing.