Skip to content

Commit

Permalink
opt: stardict replace QRegExp with QRegularExpression
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoyifang committed Jun 21, 2024
1 parent ca6ddfd commit 185614b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dict/stardict.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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>" );
Expand Down

0 comments on commit 185614b

Please sign in to comment.