From 05aecf730a7ac005d41cd815b46b29b4ece8ada3 Mon Sep 17 00:00:00 2001 From: spiral Date: Sat, 24 Sep 2022 15:35:45 +0000 Subject: [PATCH] fix(proxy): only fix here/everyone if entire webhook name is matching --- PluralKit.Bot/Services/WebhookExecutorService.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PluralKit.Bot/Services/WebhookExecutorService.cs b/PluralKit.Bot/Services/WebhookExecutorService.cs index ac96df0a..f8285070 100644 --- a/PluralKit.Bot/Services/WebhookExecutorService.cs +++ b/PluralKit.Bot/Services/WebhookExecutorService.cs @@ -266,10 +266,10 @@ public static class ProxyNameExt } static string FixHere(this string name) - => Regex.Replace(name, "(h)(ere)", Replacement, RegexOptions.IgnoreCase); + => Regex.Replace(name, "^(h)(ere)$", Replacement, RegexOptions.IgnoreCase); static string FixEveryone(this string name) - => Regex.Replace(name, "(e)(veryone)", Replacement, RegexOptions.IgnoreCase); + => Regex.Replace(name, "^(e)(veryone)$", Replacement, RegexOptions.IgnoreCase); static string FixBackticks(this string name) => Regex.Replace(name, "(`)(``)", Replacement, RegexOptions.IgnoreCase);