aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2019-12-05 20:01:56 +0300
committerGitHub <noreply@github.com>2019-12-05 20:01:56 +0300
commitf44eef6a0adbba1b02371e95bb36365589644471 (patch)
tree734437c7965ce26bc8f68bdbca27ed93bc98181f /lib
parent5937127b73a82fc86f6546397373ce9dbaf4e560 (diff)
parent4be8a673b4ad2f1caa0e34b53ed3b12e750cf569 (diff)
downloadlibquotient-f44eef6a0adbba1b02371e95bb36365589644471.tar.gz
libquotient-f44eef6a0adbba1b02371e95bb36365589644471.zip
Merge pull request #363 from quotient-im/aa13q-room-highlighting
Fix room highlighting for names with hashtag
Diffstat (limited to 'lib')
-rw-r--r--lib/util.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/util.cpp b/lib/util.cpp
index 041a8aba..9f4ac85f 100644
--- a/lib/util.cpp
+++ b/lib/util.cpp
@@ -56,7 +56,7 @@ void Quotient::linkifyUrls(QString& htmlEscapedText)
// 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 <,>,&,"