sqlitesearch: escapeFtsArgument: Fix handling of '*' prefix search

The * must not be in quotes
Este commit está contenido en:
Albert S. 2022-08-21 07:55:46 +02:00
padre 46c52afe59
commit c0f4087937

Ver fichero

@ -78,13 +78,18 @@ QString SqliteSearch::escapeFtsArgument(QString ftsArg)
if(value.isEmpty())
{
value = m.captured(2);
if(value.endsWith('*'))
{
value = value.mid(0, value.size() - 1);
}
result += "\"" + value + "\"*";
}
else
{
value = "\"\"" + value + "\"\"";
}
result += "\"" + value + "\" ";
}
}
return result;
}