Enable full unicode support in Highlight phrases

Fix #509
This commit is contained in:
Rasmus Karlsson 2018-06-24 13:41:50 +00:00
parent 573abe9f40
commit e1f2cb3355

View file

@ -33,7 +33,8 @@ public:
, sound(_sound)
, _isRegex(isRegex)
, regex(_isRegex ? _pattern : "\\b" + QRegularExpression::escape(_pattern) + "\\b",
QRegularExpression::CaseInsensitiveOption)
QRegularExpression::CaseInsensitiveOption |
QRegularExpression::UseUnicodePropertiesOption)
{
}