fix: make multi-word search terms possible
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
This commit is contained in:
parent
fac16b4b0c
commit
d1a62c85a6
@ -113,7 +113,7 @@ bool InstanceTableProxyModel::filterAcceptsRow(int sourceRow, const QModelIndex&
|
|||||||
|
|
||||||
QList<InstanceFilterQuery> InstanceTableProxyModel::parseFilterQuery(QString query)
|
QList<InstanceFilterQuery> InstanceTableProxyModel::parseFilterQuery(QString query)
|
||||||
{
|
{
|
||||||
const QRegularExpression pattern = QRegularExpression("(?:(?<prefix>\\S+):)?(?:(?<content1>\\S+)|\"(?<content2>.+)\")");
|
const QRegularExpression pattern = QRegularExpression("(?:(?<prefix>\\S+):)?(?:\"(?<content1>.+)\"|(?<content2>\\S+))");
|
||||||
QList<InstanceFilterQuery> queries;
|
QList<InstanceFilterQuery> queries;
|
||||||
|
|
||||||
QRegularExpressionMatchIterator it = pattern.globalMatch(query);
|
QRegularExpressionMatchIterator it = pattern.globalMatch(query);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user