fix: make parsing friendlier

Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
This commit is contained in:
Sefa Eyeoglu 2022-10-04 17:40:48 +02:00
parent b7bda70fb3
commit 6f88589690
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>\\w+):)?(?:(?<content1>\\w+)|\"(?<content2>.+)\")");
const QRegularExpression pattern = QRegularExpression("(?:(?<prefix>\\S+):)?(?:(?<content1>\\S+)|\"(?<content2>.+)\")");
QList<InstanceFilterQuery> queries;
QRegularExpressionMatchIterator it = pattern.globalMatch(query);