mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-14 01:30:13 +00:00
fix: inserting closing angle bracket in reply when not present in original issue
This commit is contained in:
parent
2aac97d2a0
commit
d1c6794330
1 changed files with 1 additions and 1 deletions
|
|
@ -181,7 +181,7 @@ namespace PluralKit.Bot
|
||||||
if (endsWithOpenMention)
|
if (endsWithOpenMention)
|
||||||
{
|
{
|
||||||
var mentionTail = repliedTo.Content.Substring(100).Split(">")[0];
|
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 + ">";
|
msg += mentionTail + ">";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue