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 8a04e1e commit f65e91aCopy full SHA for f65e91a
src/helpers/codetohtmlconverter.cpp
@@ -546,9 +546,11 @@ QString CodeToHtmlConverter::xmlHighlighter(StringView input) const {
546
StringView tag = input.mid(i, found - i);
547
548
static const QRegularExpression re(R"(([a-zA-Z0-9]+(\s*=\s*"[^"]*")?))");
549
-#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
+#if QT_VERSION >= QT_VERSION_CHECK(6, 5, 0)
550
+ // Qt 6.5+: use globalMatchView with StringView
551
QRegularExpressionMatchIterator matchIt = re.globalMatchView(tag);
552
#else
553
+ // Qt 5.x and Qt 6.0-6.4: use globalMatch with QString
554
QRegularExpressionMatchIterator matchIt = re.globalMatch(TO_QSTRING(tag));
555
#endif
556
0 commit comments