mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-09-13 08:45:35 +08:00
Fixed punctuation
This commit is contained in:

committed by
Patrik Svensson

parent
00a9ba325e
commit
2bd1383cbe
@@ -59,7 +59,7 @@ internal sealed class MarkupTokenizer : IDisposable
|
||||
if (encounteredClosing)
|
||||
{
|
||||
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)
|
||||
{
|
||||
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);
|
||||
|
@@ -107,7 +107,7 @@ public sealed class MarkupTests
|
||||
// Then
|
||||
result.ShouldNotBeNull();
|
||||
result.ShouldBeOfType<InvalidOperationException>();
|
||||
result.Message.ShouldBe("Encountered unescaped ']' token at position 16.");
|
||||
result.Message.ShouldBe("Encountered unescaped ']' token at position 16");
|
||||
}
|
||||
|
||||
[Fact]
|
||||
|
Reference in New Issue
Block a user