Skip to content

Problems recognizing and/or reformatting escapes #37

@mattfenwick

Description

@mattfenwick

I've noticed a couple of issues in the reformatted output when there's escapes in the input:

  1. disappearing slashes. This represents a two-character string, not a newline escape:

    • in: "\\n"
    • expected out: "\\n"
    • actual out: "\n"

    This also happens for b, r, f, and t.

  2. unexpected slashes.

    • in: "\u0066"
    • expected out: "f" (or "\u0066")
    • actual out: "\\u0066"

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