Всякое (#474)

* Economy price tweaks

* Fix slang & crit radio & explosion immunity & tweak spiders and slimes

* Fix vending message

* Typo

* Style
This commit is contained in:
Aviu00
2023-10-08 19:43:45 +09:00
committed by Aviu00
parent 4e73e606c9
commit a29e004eba
8 changed files with 52 additions and 3 deletions

View File

@@ -139,7 +139,7 @@ public sealed class ChatSanitizationManager : IChatSanitizationManager
//WD-EDIT
public string SanitizeOutSlang(string input)
{
var pattern = @"([\?\!\p{L}\d'`-]+)";
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);