From 2471976103eb4dd98d735152d39fac8c0e1ee5dd Mon Sep 17 00:00:00 2001 From: rhailrake <49613070+rhailrake@users.noreply.github.com> Date: Wed, 26 Jul 2023 16:01:28 +0600 Subject: [PATCH] =?UTF-8?q?=D1=84=D0=B8=D0=BA=D1=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Content.Server/Chat/Managers/ChatSanitizationManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Content.Server/Chat/Managers/ChatSanitizationManager.cs b/Content.Server/Chat/Managers/ChatSanitizationManager.cs index e2a54c13ce..ca3db910af 100644 --- a/Content.Server/Chat/Managers/ChatSanitizationManager.cs +++ b/Content.Server/Chat/Managers/ChatSanitizationManager.cs @@ -139,7 +139,7 @@ public sealed class ChatSanitizationManager : IChatSanitizationManager //WD-EDIT public string SanitizeOutSlang(string input) { - var pattern = @"\b(?\w+)\b"; + var pattern = @"([\p{L}\d'`-]+)"; var newMessage = Regex.Replace(input, pattern , match => _slangToNormal.ContainsKey(match.Groups[1].Value.ToLower()) ? _slangToNormal[match.Groups[1].Value.ToLower()] : match.Value, RegexOptions.IgnoreCase);