Skip to content

Any reason for the following behavior? #472

@ashmaroli

Description

@ashmaroli

Given the following Ruby script:

require 'yaml'
puts YAML::VERSION

text = <<~TXT
  items:
    tags:
      - 0001
      - 0002
      - 0003
      - 0004
      - 0005
      - 0006
      - 0007
      - 0008
      - 0009
TXT

puts YAML.dump YAML.load(text)

when run outputs the following:

3.3.0
---
items:
  tags:
  - 1
  - 2
  - 3
  - 4
  - 5
  - 6
  - 7
  - '0008'
  - '0009'

Any reason why there's a special behavior for numbers 0-7 but not for 8 and 9?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions