fix: inserting closing angle bracket in reply when not present in original issue

This commit is contained in:
Zoe Martin 2021-06-25 13:15:25 +02:00
parent 2aac97d2a0
commit d1c6794330
No known key found for this signature in database
GPG Key ID: 65238C3E138FFBE9

View File

@ -181,7 +181,7 @@ namespace PluralKit.Bot
if (endsWithOpenMention)
{
var mentionTail = repliedTo.Content.Substring(100).Split(">")[0];
if (Regex.IsMatch(msg + mentionTail, @"<[at]?[@#:][!&]?(\w+:)?\d+(:[tTdDfFR])?$"))
if (repliedTo.Content.Contains(msg + mentionTail + ">"))
msg += mentionTail + ">";
}