shared: LooqsQuery: Add 'p', 'pb', 'pe' aliases
Because this way the user has to type significantly less
这个提交包含在:
父节点
8f69be229b
当前提交
821bed6706
@ -270,15 +270,15 @@ LooqsQuery LooqsQuery::build(QString expression, TokenType loneWordsTokenType, b
|
|||||||
throw LooqsGeneralException("value cannot be empty for filters");
|
throw LooqsGeneralException("value cannot be empty for filters");
|
||||||
}
|
}
|
||||||
|
|
||||||
if(filtername == "path.contains")
|
if(filtername == "p" || filtername == "path.contains")
|
||||||
{
|
{
|
||||||
tokenType = FILTER_PATH_CONTAINS;
|
tokenType = FILTER_PATH_CONTAINS;
|
||||||
}
|
}
|
||||||
else if(filtername == "path.starts")
|
else if(filtername == "pb" || filtername == "path.starts")
|
||||||
{
|
{
|
||||||
tokenType = FILTER_PATH_STARTS;
|
tokenType = FILTER_PATH_STARTS;
|
||||||
}
|
}
|
||||||
else if(filtername == "path.ends")
|
else if(filtername == "pe" || filtername == "path.ends")
|
||||||
{
|
{
|
||||||
tokenType = FILTER_PATH_ENDS;
|
tokenType = FILTER_PATH_ENDS;
|
||||||
}
|
}
|
||||||
|
正在加载...
x
在新工单中引用
屏蔽一个用户