shared: LooqsQuery: build(): Return empty query for empty expresion
这个提交包含在:
父节点
49e408be50
当前提交
7d9c883abd
@ -169,6 +169,10 @@ void LooqsQuery::addToken(Token t)
|
||||
* TODO: It's a bit ugly still*/
|
||||
LooqsQuery LooqsQuery::build(QString expression, TokenType loneWordsTokenType, bool mergeLoneWords)
|
||||
{
|
||||
if(expression.isEmpty())
|
||||
{
|
||||
return LooqsQuery{};
|
||||
}
|
||||
if(!checkParanthesis(expression))
|
||||
{
|
||||
throw LooqsGeneralException("Invalid paranthesis");
|
||||
|
正在加载...
在新工单中引用
屏蔽一个用户