Previously we'd treat values like 0127 as correctly a string not a number, per the YAML 1.2 spec. However that check did not kick in when there was a sign: -0127 or +0127, and those would end up getting parsed as a base 10 number via u64::from_str or i64::from_str, which is not correct.
Previously we'd treat values like
0127
as correctly a string not a number, per the YAML 1.2 spec. However that check did not kick in when there was a sign:-0127
or+0127
, and those would end up getting parsed as a base 10 number via u64::from_str or i64::from_str, which is not correct.