opt: stardict replace QRegExp with QRegularExpression

This commit is contained in:
Xiao Yi Fang 2024-06-21 18:04:02 +08:00 committed by xiaoyifang
parent fd94f31209
commit 6d863d9770

View file

@ -614,7 +614,7 @@ void StardictDictionary::pangoToHtml( QString & text )
* Attributes "fallback", "lang", "gravity", "gravity_hint" just ignored
*/
QRegularExpression spanRegex( "<span\\s*([^>]*)>", Qt::CaseInsensitive );
QRegularExpression spanRegex( "<span\\s*([^>]*)>", QRegularExpression::CaseInsensitiveOption );
QRegularExpression styleRegex( "(\\w+)=\"([^\"]*)\"" );
text.replace( "\n", "<br>" );