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

feat(chatlog): Add support for ed2k file links

This commit is contained in:
Anthony Bilinski 2022-03-05 00:44:19 -08:00
parent 3c682abc69
commit 7a3474bf55
No known key found for this signature in database
GPG Key ID: 2AA8E0DA1B31FB3C

View File

@ -91,6 +91,7 @@ static const QVector<QRegularExpression> URI_WORD_PATTERNS = {
QRegularExpression(QStringLiteral(R"((?<=^|\s)\S*(mailto:\S+@\S+\.\S+))")),
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+))")),
};