fix: fix slang regex (#433)
This commit is contained in:
@@ -161,7 +161,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);
|
||||
|
||||
Reference in New Issue
Block a user