Skip to content

\- in regular expression not treated as escape #804

Description

@mjbvz

TS and JS Grammar Extension version: latest

Code

const x = /[a\-b]/g

Bug

\-b is treated as a single character class. However the \- should treated as an escape

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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