We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b568f2 commit 877a491Copy full SHA for 877a491
src/qt/guiutil.cpp
@@ -1070,7 +1070,12 @@ void loadStyleSheet(QWidget* widget, bool fDebugWidget)
1070
QString strStyle = QLatin1String(qFile.readAll());
1071
// Process all <os=...></os> groups in the stylesheet first
1072
QRegularExpressionMatch osStyleMatch;
1073
- QRegularExpression osStyleExp("^(<os=(?:'|\").+(?:'|\")>)((?:.|\n)+?)(</os>?)$");
+ QRegularExpression osStyleExp(
1074
+ "^"
1075
+ "(<os=(?:'|\").+(?:'|\")>)" // group 1
1076
+ "((?:.|\n)+?)" // group 2
1077
+ "(</os>?)" // group 3
1078
+ "$");
1079
osStyleExp.setPatternOptions(QRegularExpression::MultilineOption);
1080
QRegularExpressionMatchIterator it = osStyleExp.globalMatch(strStyle);
1081
0 commit comments