Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
|
@@ -558,9 +558,11 @@ QVariant QgsExpressionNodeBinaryOperator::evalNode( QgsExpression *parent, const |
|
|
esc_regexp.replace( pos + 1, 1, '.' ); |
|
|
pos += 1; |
|
|
} |
|
|
const thread_local QRegularExpression rx4( QStringLiteral( "\\\\_" ) ); |
|
|
esc_regexp.replace( rx4, QStringLiteral( "_" ) ); |
|
|
matches = QRegExp( esc_regexp, mOp == boLike || mOp == boNotLike ? Qt::CaseSensitive : Qt::CaseInsensitive ).exactMatch( str ); |
|
|
esc_regexp.replace( QStringLiteral( "\\\\_" ), QStringLiteral( "_" ) ); |
|
|
QRegularExpression::PatternOption option; |
|
|
if ( mOp == boILike || mOp == boNotILike ) |
|
|
option = QRegularExpression::CaseInsensitiveOption; |
|
|
matches = QRegularExpression( esc_regexp, option ).match( str ).hasMatch(); |
|
|
} |
|
|
else |
|
|
{ |
|
|
|
@@ -878,7 +878,7 @@ void QgsApplication::setUITheme( const QString &themeName ) |
|
|
{ |
|
|
// apply OS-specific UI scale factor to stylesheet's em values |
|
|
int index = 0; |
|
|
const thread_local QRegularExpression regex( QStringLiteral( "(?<=[\\s:])([0-9\\.]+)(?=em)" ) ); |
|
|
const static QRegularExpression regex( QStringLiteral( "(?<=[\\s:])([0-9\\.]+)(?=em)" ) ); |
|
|
QRegularExpressionMatch match = regex.match( styledata, index ); |
|
|
while ( match.hasMatch() ) |
|
|
{ |
|
|
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session.
You signed out in another tab or window. Reload to refresh your session.