Open winitzki opened 1 year ago
We use String#toIntOption
and String#toDoubleOption
to parse ints and doubles and these strings are not supported by those parsers. I guess to support them would mean writing a custom parser for both. Is this a part of yaml spec? Are those valid values for Int or Double by spec?
@lbialy see https://yaml.org/spec/1.2.2/#core-schema and tag resolution
Yaml values such as
0xFFFF
or-.inf
are recognized asInteger
andDouble
but parsing fails: