psych icon indicating copy to clipboard operation
psych copied to clipboard

YAML string in exponential format cannot be loaded by YAML 1.2 parser

Open adammw opened this issue 2 years ago • 0 comments

Example: a string in the form of 344455e6 will not be quoted by the Psych YAML parser as it is not matching the regex used by the YAML1.1 spec for floats, however a YAML 1.2 compliant parser will interpret the value as a float since the decimal point and sign is considered optional in YAML 1.2.

adammw avatar May 10 '23 06:05 adammw