feat: strip prefixes and suffixes in links (#5486)

This commit is contained in:
nerix
2024-07-14 11:17:42 +02:00
committed by GitHub
parent 973b7a3bdd
commit b9f669d3a5
10 changed files with 282 additions and 90 deletions
@@ -733,12 +733,12 @@ void TwitchMessageBuilder::addTextOrEmoji(const QString &string_)
}
// Actually just text
LinkParser parsed(string);
auto link = linkparser::parse(string);
auto textColor = this->textColor_;
if (parsed.result())
if (link)
{
this->addLink(*parsed.result());
this->addLink(*link, string);
return;
}