Skip to content

Commit 6aac430

Browse files
committed
add test case
1 parent ebfb7ed commit 6aac430

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/fixtures/parser/literal/duplicate-named-capturing-group-invalid-2025.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@
2222
"index": 25
2323
}
2424
},
25+
"/(?<x>a)(?:(?<x>b)|(?<x>c))/": {
26+
"error": {
27+
"message": "Invalid regular expression: /(?<x>a)(?:(?<x>b)|(?<x>c))/: Duplicate capture group name",
28+
"index": 16
29+
}
30+
},
2531
"/(?:(?:(?<x>a)|(?<x>b)))(?<x>c)/": {
2632
"error": {
2733
"message": "Invalid regular expression: /(?:(?:(?<x>a)|(?<x>b)))(?<x>c)/: Duplicate capture group name",

0 commit comments

Comments
 (0)