Skip to content

Commit a3c045e

Browse files
committed
Adds bracket matching validation to parser
Adds validation to ensure that brackets and braces are properly matched in the format parser. This prevents incorrect parsing when there are mismatched brackets/braces.
1 parent 9298e48 commit a3c045e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/Exceptionless.DateTimeExtensions.Tests/FormatParsers/TwoPartFormatParserTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public static IEnumerable<object[]> Inputs
4848
["blah", null, null],
4949
["[invalid", null, null],
5050
["invalid}", null, null],
51-
51+
5252
// Mismatched bracket validation
5353
["{2012 TO 2013]", null, null], // Opening brace with closing bracket
5454
["[2012 TO 2013}", null, null], // Opening bracket with closing brace

0 commit comments

Comments
 (0)