Skip to content

YAML strings value are quoted differently if the first character is a number. #7

@TristanCacqueray

Description

@TristanCacqueray

The context for this is dhall-lang/dhall-haskell#1894 where I am wondering if a string value that contains a single word could always be quoted. This would enable a nicer output when the values are checksum, for example:

- checksum: "72b6ae7b4ed0"
- checksum: "e3c1b309d920"

Instead of the current output:

- checksum: "72b6ae7b4ed0"
- checksum: e3c1b309d920

Another odd behavior is regarding single vs double quote on this output:

ip: '127.0.0.1'
net: "127.0.0.1/8"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions