Lol (#256)
This commit is contained in:
@@ -123,7 +123,7 @@ public sealed class ChatSanitizationManager : IChatSanitizationManager
|
|||||||
|
|
||||||
foreach (var (smiley, replacement) in SmileyToEmote)
|
foreach (var (smiley, replacement) in SmileyToEmote)
|
||||||
{
|
{
|
||||||
if (input.EndsWith(smiley, true, CultureInfo.InvariantCulture))
|
if (input == smiley || input.EndsWith($" {smiley}", true, CultureInfo.InvariantCulture)) // WD EDIT
|
||||||
{
|
{
|
||||||
sanitized = input.Remove(input.Length - smiley.Length).TrimEnd();
|
sanitized = input.Remove(input.Length - smiley.Length).TrimEnd();
|
||||||
emote = Loc.GetString(replacement, ("ent", speaker));
|
emote = Loc.GetString(replacement, ("ent", speaker));
|
||||||
|
|||||||
Reference in New Issue
Block a user