From d62cfc16166ff48f07778a67d37fe939e71e80c0 Mon Sep 17 00:00:00 2001 From: Andrew Hong Date: Wed, 12 Jul 2023 20:24:09 -0400 Subject: [PATCH] Parse emoji to an empty string --- osu.Game/Online/Chat/MessageFormatter.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/osu.Game/Online/Chat/MessageFormatter.cs b/osu.Game/Online/Chat/MessageFormatter.cs index 6ca651bc87..3e03cc287b 100644 --- a/osu.Game/Online/Chat/MessageFormatter.cs +++ b/osu.Game/Online/Chat/MessageFormatter.cs @@ -256,6 +256,9 @@ namespace osu.Game.Online.Chat private static MessageFormatterResult format(string toFormat, int startIndex = 0, int space = 3) { + // see: https://github.com/ppy/osu/pull/24190 + toFormat = Regex.Replace(toFormat, emoji_regex.ToString(), string.Empty); + var result = new MessageFormatterResult(toFormat); // handle the [link display] format