1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

feat(chatlog): Add custom web handler as hyperlink

This commit is contained in:
Devan Carpenter 2022-06-22 19:10:11 +01:00
parent 2197bce610
commit 2239ebb32e

View File

@ -93,6 +93,7 @@ const QVector<QRegularExpression> 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+))")),
};