diff options
author | Alexey Rusakov <Kitsune-Ral@users.sf.net> | 2021-10-04 09:53:53 +0200 |
---|---|---|
committer | Alexey Rusakov <Kitsune-Ral@users.sf.net> | 2021-10-04 09:55:40 +0200 |
commit | 88cbbe5eb2e024d71e0897617ab65860cee51607 (patch) | |
tree | 4896662ce86af75f3cd152a58c3440f6f9a0d975 /lib | |
parent | c168a0a29f0a4eed2a21933749689b8fe9b0aa42 (diff) | |
download | libquotient-88cbbe5eb2e024d71e0897617ab65860cee51607.tar.gz libquotient-88cbbe5eb2e024d71e0897617ab65860cee51607.zip |
Further tighten the linkifier in prettyPrint()
Diffstat (limited to 'lib')
-rw-r--r-- | lib/util.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/util.cpp b/lib/util.cpp index 5de8638e..cf5e81a3 100644 --- a/lib/util.cpp +++ b/lib/util.cpp @@ -47,7 +47,7 @@ void Quotient::linkifyUrls(QString& htmlEscapedText) // comma or dot static const QRegularExpression FullUrlRegExp( QStringLiteral( - R"(\b((www\.(?!\.)(?!(\w|\.|-)+@)|(https?|ftp|magnet|matrix):(//)?)(&(?![lg]t;)|[^&\s<>'"])+(&(?![lg]t;)|[^&!,.\s<>'"\]):])))"), + R"(\b((www\.(?!\.)(?!(\w|\.|-)+@)|(https?|ftp):(//)?\w|(magnet|matrix):)(&(?![lg]t;)|[^&\s<>'"])+(&(?![lg]t;)|[^&!,.\s<>'"\]):])))"), RegExpOptions); // email address: // [word chars, dots or dashes]@[word chars, dots or dashes].[word chars] |