From 2239ebb32ea59561baaa25aa1f97f121f370d6c4 Mon Sep 17 00:00:00 2001 From: Devan Carpenter Date: Wed, 22 Jun 2022 19:10:11 +0100 Subject: [PATCH] feat(chatlog): Add custom web handler as hyperlink --- src/chatlog/textformatter.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/chatlog/textformatter.cpp b/src/chatlog/textformatter.cpp index 0d7cda09c..eb590ca90 100644 --- a/src/chatlog/textformatter.cpp +++ b/src/chatlog/textformatter.cpp @@ -93,6 +93,7 @@ const QVector URI_WORD_PATTERNS = { QRegularExpression(QStringLiteral(R"((?<=^|\s)\S*(magnet:[?]((xt(.\d)?=urn:)|(mt=)|(kt=)|(tr=)|(dn=)|(xl=)|(xs=)|(as=)|(x.))[\S| ]+))")), QRegularExpression(QStringLiteral(R"((?<=^|\s)\S*(gemini://\S+))")), QRegularExpression(QStringLiteral(R"((?<=^|\s)\S*(ed2k://\|file\|\S+))")), + QRegularExpression(QStringLiteral(R"((?<=^|\s)\S*(web+\S+:\S+))")), };