Skip to content

Support for ES2025 RegExp duplicate named capturing groups #18330

@ota-meshi

Description

@ota-meshi

Syntax name

Duplicate named capturing groups

Syntax proposal URL

https://github.com/tc39/proposal-duplicate-named-capturing-groups

Example code

str.match(/(?<year>[0-9]{4})-[0-9]{2}|[0-9]{2}-(?<year>[0-9]{4})/)

Implementation Checklist

Participation

  • I am willing to submit a pull request for this change.

Additional comments

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    acceptedThere is consensus among the team that this change meets the criteria for inclusionarchived due to ageThis issue has been archived; please open a new issue for any further discussioncoreRelates to ESLint's core APIs and featuresnew syntaxThis issue is related to new syntax that has reached stage 4

    Type

    No type

    Projects

    Status

    Complete

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions