Fix bug with uris being interpreted as emojis

Closes #82
This commit is contained in:
Patrik Svensson
2020-09-20 13:00:44 +02:00
parent eeb3f967b6
commit 3847a8949f
2 changed files with 17 additions and 2 deletions

View File

@ -13,7 +13,6 @@ namespace Spectre.Console.Internal
throw new ArgumentNullException(nameof(text));
}
text = Emoji.Replace(text);
style ??= Style.Plain;
var result = new Paragraph();
@ -47,7 +46,7 @@ namespace Spectre.Console.Internal
{
// Get the effecive style.
var effectiveStyle = style.Combine(stack.Reverse());
result.Append(token.Value, effectiveStyle);
result.Append(Emoji.Replace(token.Value), effectiveStyle);
}
else
{