shared: LooqsQuery: Add 'p', 'pb', 'pe' aliases

Because this way the user has to type significantly less
Este commit está contenido en:
Albert S. 2022-06-04 22:01:33 +02:00
padre 8f69be229b
commit 821bed6706
Se han modificado 1 ficheros con 3 adiciones y 3 borrados

Ver fichero

@ -270,15 +270,15 @@ LooqsQuery LooqsQuery::build(QString expression, TokenType loneWordsTokenType, b
throw LooqsGeneralException("value cannot be empty for filters");
}
if(filtername == "path.contains")
if(filtername == "p" || filtername == "path.contains")
{
tokenType = FILTER_PATH_CONTAINS;
}
else if(filtername == "path.starts")
else if(filtername == "pb" || filtername == "path.starts")
{
tokenType = FILTER_PATH_STARTS;
}
else if(filtername == "path.ends")
else if(filtername == "pe" || filtername == "path.ends")
{
tokenType = FILTER_PATH_ENDS;
}