Skip to content

non-printable characters are not supported inside quoted scalars #192

Closed
@rlidwka

Description

YAML standard section 5.1 explicitly allows non-printables in quoted scalars for JSON compatibility, js-yaml doesn't:

> require('js-yaml').load('"\ud800"')
JS-YAML: the stream contains non-printable characters at line 1, column 1:
    "���"
    ^
> JSON.parse('"\ud800"')
'���'

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions