From kde-commits Wed Nov 24 20:15:36 2010 From: Vishesh Handa Date: Wed, 24 Nov 2010 20:15:36 +0000 To: kde-commits Subject: [Soprano] ec07c98: Fix the fake boolean regexp. Now it works with * ' Message-Id: <20101124201536.DA9A5A60A6 () git ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=129062982821085 commit ec07c98878cebcebf3f0da788edb88e4e1c99fa2 branch master Author: Vishesh Handa Date: Thu Nov 25 01:47:07 2010 +0530 Fix the fake boolean regexp. Now it works with * 'true' * true * 'true'^^xsd:boolean * 'true'^^ Before this it only used to work for the last 2. diff --git a/backends/virtuoso/virtuosomodel_p.h b/backends/virtuoso/virtuosomodel_p.h index 57233b6..fefc8e5 100644 --- a/backends/virtuoso/virtuosomodel_p.h +++ b/backends/virtuoso/virtuosomodel_p.h @@ -40,7 +40,7 @@ namespace Soprano { public: VirtuosoModelPrivate() : connectionPool( 0 ), - m_fakeBooleanRegExp( QLatin1String("([\"'])(true|false)\\1\\^\\^(|\\w+\\:boolean)"), + m_fakeBooleanRegExp( QLatin1String("([\"'])?(true|false)\\1?(\\^\\^(|\\w+\\:boolean))?"), Qt::CaseInsensitive, QRegExp::RegExp2 ), m_openIteratorMutex( QMutex::Recursive ) {