From e1f2cb335540ad49c98e401f18c99bfd638f5be0 Mon Sep 17 00:00:00 2001 From: Rasmus Karlsson Date: Sun, 24 Jun 2018 13:41:50 +0000 Subject: [PATCH] Enable full unicode support in Highlight phrases Fix #509 --- src/controllers/highlights/highlightphrase.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/controllers/highlights/highlightphrase.hpp b/src/controllers/highlights/highlightphrase.hpp index 7346295d..052752c4 100644 --- a/src/controllers/highlights/highlightphrase.hpp +++ b/src/controllers/highlights/highlightphrase.hpp @@ -33,7 +33,8 @@ public: , sound(_sound) , _isRegex(isRegex) , regex(_isRegex ? _pattern : "\\b" + QRegularExpression::escape(_pattern) + "\\b", - QRegularExpression::CaseInsensitiveOption) + QRegularExpression::CaseInsensitiveOption | + QRegularExpression::UseUnicodePropertiesOption) { }