Skip to content

Regex octal escape sequence bug #4489

Closed
@helixbass

Description

@helixbass

While reading lexer.coffee spotted a hole in the validateEscapes() logic: if it encounters a valid "INVALID_ESCAPE" (eg \1) inside a regex interpolation-free section then it fails to check the rest of the section for actually invalid escapes. So eg /\1\01/ should fail but instead generates /\1\x001/

Will submit a fixing pull request momentarily

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