Skip to content

Strings containing dots as keys are misgenerated into invalid TOML and not parsed properly. #68

@cubuzz

Description

@cubuzz

Title says it all: If the key contains dots / periods / whatever you wanna call them, the generator outputs something like this.

Behaviour:
TOML::Generator.new({"my.string" => "some.thing"}).body # => "my.string = 'some.thing'"

Expected behaviour:
TOML::Generator.new({"my.string" => "some.thing"}).body # => "'my.string' = 'some.thing'"

Parsing actually valid files following the specs for toml which contain these strings also throw errors.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions