From 1e5ba5f9853a3d5f3ad1886963fb1f5716d81cba Mon Sep 17 00:00:00 2001 From: spiral Date: Sat, 1 May 2021 19:17:35 +0100 Subject: [PATCH] feat: case-insensitive "text" keyword matching for proxy tags --- PluralKit.Bot/Commands/MemberProxy.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/PluralKit.Bot/Commands/MemberProxy.cs b/PluralKit.Bot/Commands/MemberProxy.cs index d09ea4cf..44873fb8 100644 --- a/PluralKit.Bot/Commands/MemberProxy.cs +++ b/PluralKit.Bot/Commands/MemberProxy.cs @@ -26,6 +26,7 @@ namespace PluralKit.Bot { // // Make sure there's one and only one instance of "text" in the example proxy given var prefixAndSuffix = exampleProxy.Split("text"); + if (prefixAndSuffix.Length == 1) prefixAndSuffix = prefixAndSuffix[0].Split("TEXT"); if (prefixAndSuffix.Length < 2) throw Errors.ProxyMustHaveText; if (prefixAndSuffix.Length > 2) throw Errors.ProxyMultipleText; return new ProxyTag(prefixAndSuffix[0], prefixAndSuffix[1]);