1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 11:35:35 +08:00

Parse emoji to an empty string

This commit is contained in:
Andrew Hong 2023-07-12 20:24:09 -04:00
parent b05ba8c501
commit d62cfc1616

View File

@ -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