This commit is contained in:
Simon Cropp
2020-12-24 17:11:30 +11:00
committed by Patrik Svensson
parent f417e297cd
commit 041aea2ae5
4 changed files with 10 additions and 10 deletions

View File

@ -44,13 +44,13 @@ namespace Spectre.Console.Internal
}
else if (token.Kind == MarkupTokenKind.Text)
{
// Get the effecive style.
// Get the effective style.
var effectiveStyle = style.Combine(stack.Reverse());
result.Append(Emoji.Replace(token.Value), effectiveStyle);
}
else
{
throw new InvalidOperationException("Encountered unkown markup token.");
throw new InvalidOperationException("Encountered unknown markup token.");
}
}

View File

@ -189,7 +189,7 @@ namespace Spectre.Console.Internal
var normalized = rgb ?? string.Empty;
if (normalized.Length >= 3)
{
// Trim parenthesises
// Trim parentheses
normalized = normalized.Substring(3).Trim();
if (normalized.StartsWith("(", StringComparison.OrdinalIgnoreCase) &&