Skip to content

C# range with shorthand escape sequences #1969

@stevenh

Description

@stevenh

Bug Description

If you create a regexp range with a shorthand escape sequence in C# it incorrectly fails with:

You cannot create a range with shorthand escape sequences

Reproduction steps

  1. Syntax: C#
  2. Regexp: ([\d-z]+)

Expected Outcome

Valid regexp

Browser

Chrome: 108.0.5359.126

OS

Windows 11

This can be validated with fiddler

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions