Browse Source

feat(chatlog): Add gemini:// to hyperlink regex

reviewable/pr6502/r1
Devan Carpenter 3 years ago
parent
commit
355dfb7a7f
  1. 1
      src/chatlog/textformatter.cpp

1
src/chatlog/textformatter.cpp

@ -90,6 +90,7 @@ static const QVector<QRegularExpression> URI_WORD_PATTERNS = { @@ -90,6 +90,7 @@ static const QVector<QRegularExpression> URI_WORD_PATTERNS = {
QRegularExpression(QStringLiteral(R"((?<=^|\s)\S*(tox:[a-zA-Z\d]{76}))")),
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+))")),
};

Loading…
Cancel
Save