Skip to content

Commit

Permalink
cleanup int casts (#462)
Browse files Browse the repository at this point in the history
regex replace changed too much
  • Loading branch information
ChristopherHX authored Dec 5, 2024
1 parent d427997 commit 9a21e32
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public Boolean AllowLiteral(out LiteralToken value)
// Not plain style
if (scalar.Style != ScalarStyle.Plain)
{
throw new NotSupportedException($"The scalar style '{scalar.Style}' on line (int) {scalar.Start.Line} and column (int) {scalar.Start.Column} is not valid with the tag '{scalar.Tag}'");
throw new NotSupportedException($"The scalar style '{scalar.Style}' on line {scalar.Start.Line} and column {scalar.Start.Column} is not valid with the tag '{scalar.Tag}'");
}

// Boolean, Float, Integer, or Null
Expand Down Expand Up @@ -736,7 +736,7 @@ private void ThrowInvalidValue(
Scalar scalar,
String tag)
{
throw new NotSupportedException($"The value '{scalar.Value}' on line (int) {scalar.Start.Line} and column (int) {scalar.Start.Column} is invalid for the type '{scalar.Tag}'");
throw new NotSupportedException($"The value '{scalar.Value}' on line {scalar.Start.Line} and column {scalar.Start.Column} is invalid for the type '{scalar.Tag}'");
}

private const String c_booleanTag = "tag:yaml.org,2002:bool";
Expand Down

0 comments on commit 9a21e32

Please sign in to comment.