aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Andreyev <aa13q@ya.ru>2019-11-30 03:13:23 +0300
committerKitsune Ral <Kitsune-Ral@users.sf.net>2020-03-25 22:35:23 +0100
commit27a2f59722b6e6642dae05cd4f04f5f40304eeb1 (patch)
tree1d7807587b541bdb240e9811c54f81b44bb9acca
parent76265ca6aa7a6c8d777aa55190d9038600ef11b1 (diff)
downloadlibquotient-27a2f59722b6e6642dae05cd4f04f5f40304eeb1.tar.gz
libquotient-27a2f59722b6e6642dae05cd4f04f5f40304eeb1.zip
Fix room highlighting for names with hashtag
Fixes #359
-rw-r--r--lib/util.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/util.cpp b/lib/util.cpp
index 914358d5..81862ab6 100644
--- a/lib/util.cpp
+++ b/lib/util.cpp
@@ -50,7 +50,7 @@ static void linkifyUrls(QString& htmlEscapedText)
// An interim liberal implementation of
// https://matrix.org/docs/spec/appendices.html#identifier-grammar
static const QRegularExpression MxIdRegExp(QStringLiteral(
- R"((^|[^<>/])([!#@][-a-z0-9_=/.]{1,252}:(?:\w|\.|-)+\.\w+(?::\d{1,5})?))"
+ R"((^|[^<>/])([!#@][-a-z0-9_=#/.]{1,252}:(?:\w|\.|-)+\.\w+(?::\d{1,5})?))"
), RegExpOptions);
// NOTE: htmlEscapedText is already HTML-escaped! No literal <,>,&,"