diff --git a/qdlt/qdltfilter.cpp b/qdlt/qdltfilter.cpp index 1fd1ae99..77e25fcb 100644 --- a/qdlt/qdltfilter.cpp +++ b/qdlt/qdltfilter.cpp @@ -151,8 +151,9 @@ bool QDltFilter::compileRegexps() ignoreCase_Header ? QRegularExpression::CaseInsensitiveOption : QRegularExpression::NoPatternOption); payloadRegularExpression.setPatternOptions( - ignoreCase_Payload ? QRegularExpression::CaseInsensitiveOption - : QRegularExpression::NoPatternOption); + QRegularExpression::DotMatchesEverythingOption | + (ignoreCase_Payload ? QRegularExpression::CaseInsensitiveOption + : QRegularExpression::NoPatternOption)); return (headerRegularExpression.isValid() && payloadRegularExpression.isValid() && diff --git a/src/searchdialog.cpp b/src/searchdialog.cpp index 1cabbcda..90d1e446 100644 --- a/src/searchdialog.cpp +++ b/src/searchdialog.cpp @@ -290,16 +290,10 @@ int SearchDialog::find() return 1; } - searchTextRegExpression.setPatternOptions(QRegularExpression::CaseInsensitiveOption); - if ( getCaseSensitive() == true ) - { - searchTextRegExpression.setPatternOptions(QRegularExpression::NoPatternOption); - } - else - { - searchTextRegExpression.setPatternOptions(QRegularExpression::CaseInsensitiveOption); - } - + int options = QRegularExpression::DotMatchesEverythingOption; + if (!getCaseSensitive()) + options |= QRegularExpression::CaseInsensitiveOption; + searchTextRegExpression.setPatternOptions(static_cast(options)); } //check timestamp search pattern