aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/util.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/util.cpp b/lib/util.cpp
index 4cbebfe2..61661de8 100644
--- a/lib/util.cpp
+++ b/lib/util.cpp
@@ -28,7 +28,9 @@
static const auto RegExpOptions =
QRegularExpression::CaseInsensitiveOption
- | QRegularExpression::OptimizeOnFirstUsageOption
+#if QT_VERSION < QT_VERSION_CHECK(5, 12, 0)
+ | QRegularExpression::OptimizeOnFirstUsageOption // Default since 5.12
+#endif
| QRegularExpression::UseUnicodePropertiesOption;
// Converts all that looks like a URL into HTML links