Skip to content

Support the RegExp v flag #1006

@BenjaminAster

Description

@BenjaminAster

The RegExp v flag (a.k.a. RegExp.prototype.unicodeSets) is now in the main ECMAScript standard and supported across all modern browsers, but TypeScript/JavaScript syntax highlighting breaks when using it. Supporting it should work similarly to #862.

5. If F contains any code unit other than "d", "g", "i", "m", "s", "u", "v", or "y", or if F contains any code unit more than once, throw a SyntaxError exception.
(see also https://tc39.es/ecma262/multipage/text-processing.html#sec-regexpinitialize)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions