fix: make multi-word search terms possible

Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
This commit is contained in:
Sefa Eyeoglu 2022-10-04 21:47:24 +02:00
parent fac16b4b0c
commit d1a62c85a6
No known key found for this signature in database
GPG Key ID: C10411294912A422

View File

@ -113,7 +113,7 @@ bool InstanceTableProxyModel::filterAcceptsRow(int sourceRow, const QModelIndex&
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;
QRegularExpressionMatchIterator it = pattern.globalMatch(query);