Upstream serilog/serilog state of the touched files before df4a76f3d0

This commit is contained in:
upstream committed 2026-09-02 09:42:20 +02:00
1 parent 5b8df6535a
commit ec7d201361
2 files changed
-12

No files matched your search

@@ -150,11 +150,6 @@ public class MessageTemplateParser : IMessageTemplateParser
if (!int.TryParse(alignment, NumberStyles.AllowLeadingSign, CultureInfo.InvariantCulture, out var width))
return new TextToken(rawText);
// int.MinValue has no positive counterpart, so it cannot be an alignment
// width; treat it as text rather than overflowing below.
if (width == int.MinValue)
return new TextToken(rawText);
var hasDash = alignment[0] == '-';
var direction = hasDash ? AlignmentDirection.Left : AlignmentDirection.Right;
@@ -379,13 +379,6 @@ public class MessageTemplateParserTests
new TextToken("{Hello,10-1}"));
}
[Fact]
public void AlignmentOfIntMinValueIsParsedAsText()
{
AssertParsedAs("{Hello,-2147483648}",
new TextToken("{Hello,-2147483648}"));
}
[Fact]
public void EmptyAlignmentIsParsedAsText()
{