Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add support for ES2025 duplicate named capturing groups #195

Merged
merged 10 commits into from
Jun 28, 2024
Prev Previous commit
Next Next commit
add test case
  • Loading branch information
ota-meshi committed Jun 14, 2024
commit 44db75abd304589ae3759b303fe5a43060eb968b
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@
"index": 25
}
},
"/(?<x>a)(?:(?<x>b)|(?<x>c))/": {
"error": {
"message": "Invalid regular expression: /(?<x>a)(?:(?<x>b)|(?<x>c))/: Duplicate capture group name",
"index": 16
}
},
"/(?:(?:(?<x>a)|(?<x>b)))(?<x>c)/": {
"error": {
"message": "Invalid regular expression: /(?:(?:(?<x>a)|(?<x>b)))(?<x>c)/: Duplicate capture group name",
Expand Down