Skip to content

Commit

Permalink
Allow unicode quotes as markdown entry separators.
Browse files Browse the repository at this point in the history
Fixes #13.
  • Loading branch information
ForNeVeR committed Dec 24, 2017
1 parent 18cd75a commit b06f2ef
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Telegram/SourceFiles/ui/text/text_entity.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ QString ExpressionMailNameAtEnd() {
}

QString ExpressionSeparators(const QString &additional) {
return qsl("\\s\\.,:;<>|'\"\\[\\]\\{\\}\\~\\!\\?\\%\\^\\(\\)\\-\\+=\\x10") + 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;
}

QString ExpressionHashtag() {
Expand Down

0 comments on commit b06f2ef

Please sign in to comment.