diff --git a/gls.cc b/gls.cc index 5ea98365..28e278b7 100644 --- a/gls.cc +++ b/gls.cc @@ -920,6 +920,7 @@ QString & GlsDictionary::filterResource( QString & article ) #if QT_VERSION >= QT_VERSION_CHECK( 5, 0, 0 ) QRegularExpression audioRe( "<\\s*audio\\s+src\\s*=\\s*([\"']+)([^\"']+)([\"'])\\s*>(.*)", QRegularExpression::CaseInsensitiveOption + | QRegularExpression::DotMatchesEverythingOption | QRegularExpression::InvertedGreedinessOption ); #else QRegExp audioRe( "<\\s*audio\\s+src\\s*=\\s*([\"']+)([^\"']+)([\"'])\\s*>(.*)", Qt::CaseInsensitive ); diff --git a/stardict.cc b/stardict.cc index fd405d2d..2eacde0c 100644 --- a/stardict.cc +++ b/stardict.cc @@ -564,6 +564,7 @@ string StardictDictionary::handleResource( char type, char const * resource, siz #if QT_VERSION >= QT_VERSION_CHECK( 5, 0, 0 ) QRegularExpression audioRe( "<\\s*audio\\s*src\\s*=\\s*([\"']+)([^\"']+)([\"'])\\s*>(.*)", QRegularExpression::CaseInsensitiveOption + | QRegularExpression::DotMatchesEverythingOption | QRegularExpression::InvertedGreedinessOption ); #else QRegExp audioRe( "<\\s*audio\\s*src\\s*=\\s*([\"']+)([^\"']+)([\"'])\\s*>(.*)", Qt::CaseInsensitive );