Fix non-utf8 text in commit 31ed5214f0

This commit is contained in:
Berkus Decker 2018-01-12 18:31:53 +02:00 committed by Berkus Decker
parent befa910b9c
commit e609b4464d
1 changed files with 2 additions and 3 deletions

View File

@ -44,9 +44,8 @@ QString ExpressionMailNameAtEnd() {
}
QString ExpressionSeparators(const QString &additional) {
// UTF8 quotes: «»“”‘’
const auto quotes = QString::fromUtf8("\xC2\xAB\xC2\xBB\xE2\x80\x9C\xE2\x80\x9D\xE2\x80\x98\xE2\x80\x99");
return qsl("\\s\\.,:;<>|'\"\\[\\]\\{\\}\\~\\!\\?\\%\\^\\(\\)\\-\\+=\\x10") + quotes + additional;
const auto utf8quotes = QString::fromUtf8("\xC2\xAB\xC2\xBB\xE2\x80\x9C\xE2\x80\x9D\xE2\x80\x98\xE2\x80\x99");
return qsl("\\s\\.,:;<>|'\"\\[\\]\\{\\}\\~\\!\\?\\%\\^\\(\\)\\-\\+=\\x10") + utf8quotes + additional;
}
QString ExpressionHashtag() {