3 ms·
Could you explain further? The link contradicts this: > The most tragic aspect of this bug, however, is that it is intended behavior according to the YAML 1.2
by debugnik 3y ago
Could you explain further? The link contradicts this:
> The most tragic aspect of this bug, however, is that it is intended behavior according to the YAML 1.2 specification. The real fix requires explicitly disregarding the spec - which is why most YAML parsers have it.
- detaro 3y agoThe link is wrong. YAML 1.2 fixed this.
- riffraff 3y agothe article is wrong, from what I can tell. From https://yaml.org/spec/1.2.2/ext/changes/ https://yaml.org/spec/1.2.2/ext/changes/ > Changes in version 1.2 (revision 1.2.0) (2009-07-21) > [...] > Only true and false strings are parsed as booleans (including True and TRUE); y, yes, on, and their negative counterparts are parsed as strings. Underlines _ cannot be used within numerical values.