Skip to content

Fails to Parse String Containing Commas #41

Open
@cryptodeal

Description

@cryptodeal

When parsing a yaml document containing a string that contains a comma, it returnserror.Unhandled.

Example yaml:

data:
  splits_string: 900,50,50

The error is thrown here: https://github.com/kubkon/zig-yaml/blob/main/src/parse.zig#L467

When catching the error/logging the value of the token, it's failing at the first comma in the string.

Expected behavior per yaml spec, this should be parsed as a string.

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