mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 15:24:05 +00:00
opt: stardict replace QRegExp with QRegularExpression
This commit is contained in:
parent
fd94f31209
commit
6d863d9770
|
@ -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>" );
|
||||
|
|
Loading…
Reference in a new issue