From d1c67943308e6273e8fd9b988f1c048fe5190841 Mon Sep 17 00:00:00 2001 From: Zoe Martin Date: Fri, 25 Jun 2021 13:15:25 +0200 Subject: [PATCH] fix: inserting closing angle bracket in reply when not present in original issue --- PluralKit.Bot/Proxy/ProxyService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PluralKit.Bot/Proxy/ProxyService.cs b/PluralKit.Bot/Proxy/ProxyService.cs index 90cf0e7e..97df8667 100644 --- a/PluralKit.Bot/Proxy/ProxyService.cs +++ b/PluralKit.Bot/Proxy/ProxyService.cs @@ -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 + ">"; }