DSL: Fix expanding of round brackets while full-text search

This commit is contained in:
Abs62 2019-09-21 00:30:53 +03:00
parent 99a7e7fc9b
commit 58560e1ef5

View file

@ -437,7 +437,7 @@ void FTSResultsRequest::checkArticles( QVector< uint32_t > const & offsets,
}
#if QT_VERSION >= QT_VERSION_CHECK( 5, 0, 0 )
QRegularExpression regBrackets( "(\\([\\w\\p{M}]\\)){0,1}([\\w\\p{M}]+)(\\([\\w\\p{M}]+\\)){0,1}([\\w\\p{M}]+){0,1}(\\([\\w\\p{M}]+\\)){0,1}",
QRegularExpression regBrackets( "(\\([\\w\\p{M}]+\\)){0,1}([\\w\\p{M}]+)(\\([\\w\\p{M}]+\\)){0,1}([\\w\\p{M}]+){0,1}(\\([\\w\\p{M}]+\\)){0,1}",
QRegularExpression::UseUnicodePropertiesOption);
QRegularExpression regSplit( "[^\\w\\p{M}]+", QRegularExpression::UseUnicodePropertiesOption );
#else