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:
parent
3c682abc69
commit
7a3474bf55
|
@ -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+))")),
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user