mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-04-20 02:32:50 +08:00
Fixed punctuation
This commit is contained in:
parent
00a9ba325e
commit
2bd1383cbe
@ -59,7 +59,7 @@ internal sealed class MarkupTokenizer : IDisposable
|
|||||||
if (encounteredClosing)
|
if (encounteredClosing)
|
||||||
{
|
{
|
||||||
throw new InvalidOperationException(
|
throw new InvalidOperationException(
|
||||||
$"Encountered unescaped ']' token at position {_reader.Position}.");
|
$"Encountered unescaped ']' token at position {_reader.Position}");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -68,7 +68,7 @@ internal sealed class MarkupTokenizer : IDisposable
|
|||||||
|
|
||||||
if (encounteredClosing)
|
if (encounteredClosing)
|
||||||
{
|
{
|
||||||
throw new InvalidOperationException($"Encountered unescaped ']' token at position {_reader.Position}.");
|
throw new InvalidOperationException($"Encountered unescaped ']' token at position {_reader.Position}");
|
||||||
}
|
}
|
||||||
|
|
||||||
Current = new MarkupToken(MarkupTokenKind.Text, builder.ToString(), position);
|
Current = new MarkupToken(MarkupTokenKind.Text, builder.ToString(), position);
|
||||||
|
@ -107,7 +107,7 @@ public sealed class MarkupTests
|
|||||||
// Then
|
// Then
|
||||||
result.ShouldNotBeNull();
|
result.ShouldNotBeNull();
|
||||||
result.ShouldBeOfType<InvalidOperationException>();
|
result.ShouldBeOfType<InvalidOperationException>();
|
||||||
result.Message.ShouldBe("Encountered unescaped ']' token at position 16.");
|
result.Message.ShouldBe("Encountered unescaped ']' token at position 16");
|
||||||
}
|
}
|
||||||
|
|
||||||
[Fact]
|
[Fact]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user