Skip to content

Add support for duplicate named capturing groups in regex#4550

Open
n-faria wants to merge 1 commit intoboa-dev:mainfrom
n-faria:4442-duplicate-named-groups
Open

Add support for duplicate named capturing groups in regex#4550
n-faria wants to merge 1 commit intoboa-dev:mainfrom
n-faria:4442-duplicate-named-groups

Conversation

@n-faria
Copy link
Contributor

@n-faria n-faria commented Nov 27, 2025

Draft PR, do not merge yet

This implements the TC39 Stage 4 proposal for duplicate named capturing groups in regular expressions.

This Pull Request fixes/closes #4442.

It changes the following:

-Implementation is in the regress crate (ridiculousfish/regress#136).
See ridiculousfish/regress#136
Once that PR is merged and a new version is published, this PR will be updated with the regress version bump
-That is the only change required, testing was done locally already
-Test cases already exist and are marked as EsNext

This implements the TC39 Stage 4 proposal for duplicate named capturing
groups in regular expressions.

Implementation is in the regress crate (ridiculousfish/regress#136).
Once that PR is merged and a new version is published, this PR will be
updated with the regress version bump.

Fixes boa-dev#4442
@github-actions
Copy link

Test262 conformance changes

Test result main count PR count difference
Total 50,747 50,747 0
Passed 47,877 47,877 0
Ignored 2,060 2,060 0
Failed 810 810 0
Panics 0 0 0
Conformance 94.34% 94.34% 0.00%

@codecov
Copy link

codecov bot commented Nov 27, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 57.06%. Comparing base (6ddc2b4) to head (961c291).
⚠️ Report is 860 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4550      +/-   ##
==========================================
+ Coverage   47.24%   57.06%   +9.82%     
==========================================
  Files         476      504      +28     
  Lines       46892    57548   +10656     
==========================================
+ Hits        22154    32842   +10688     
+ Misses      24738    24706      -32     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@jedel1043 jedel1043 added Blocked Waiting for another code change C-Builtins PRs and Issues related to builtins/intrinsics labels Feb 27, 2026
@jedel1043
Copy link
Member

PR is unblocked! Regress v0.11 was released a couple of days ago

@jedel1043 jedel1043 added A-Enhancement New feature or request and removed Blocked Waiting for another code change labels Mar 12, 2026
@jedel1043 jedel1043 added this to the v1.0.0 milestone Mar 12, 2026
@amrkhaled104
Copy link
Contributor

this mean we should delete line 16 ?

image

@jedel1043
Copy link
Member

Yeah pretty much, but I'm giving the honors of doing this to @n-faria, it's their project after all :)

@amrkhaled104
Copy link
Contributor

i appreciate that and i respect , They did a great job

@jedel1043 jedel1043 added the Waiting On Author Waiting on PR changes from the author label Mar 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-Enhancement New feature or request C-Builtins PRs and Issues related to builtins/intrinsics Waiting On Author Waiting on PR changes from the author

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement duplicated named capturing groups proposal

3 participants