Replace emoji in segment text

This commit is contained in:
Kristian Hellang 2020-09-15 22:54:23 +02:00 committed by Patrik Svensson
parent fea8a36e8a
commit b7f654cd7f

View File

@ -72,7 +72,7 @@ namespace Spectre.Console.Rendering
throw new ArgumentNullException(nameof(text));
}
Text = text.NormalizeLineEndings();
Text = Emoji.Replace(text).NormalizeLineEndings();
Style = style;
IsLineBreak = lineBreak;
IsWhiteSpace = string.IsNullOrWhiteSpace(text);