Fixed a bug where unicode characters were not included in the spell check regex

This commit is contained in:
Veronica K. B. Olsen
2019-10-20 14:23:27 +02:00
parent 77c6caacee
commit fe12e99735
+1
View File
@@ -185,6 +185,7 @@ class GuiDocHighlighter(QSyntaxHighlighter):
# Build a QRegExp for each pattern and for the spell checker
self.rules = [(QRegularExpression(a),b) for (a,b) in self.hRules]
self.spellRx = QRegularExpression(r"\b[^\s]+\b")
self.spellRx.setPatternOptions(QRegularExpression.UseUnicodePropertiesOption)
return True