Skip to content

StringReader fails to normalize Windows line endings #133

@mrennie

Description

@mrennie

StringReader has the following regex in it to try and normalize line endings:

this._input = text.replace(/\n\r?/g, "\n");

Which should probably be:

this._input = text.replace(/\r\n?/g, "\n");

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