Skip to content

Commit ebfb7ed

Browse files
committed
add test case
1 parent 598b238 commit ebfb7ed

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
@@ -10,6 +10,12 @@
1010
"index": 27
1111
}
1212
},
13+
"/(?<x>a)|(?<x>b)(?<x>c)/": {
14+
"error": {
15+
"message": "Invalid regular expression: /(?<x>a)|(?<x>b)(?<x>c)/: Duplicate capture group name",
16+
"index": 21
17+
}
18+
},
1319
"/(?:(?<x>a)|(?<x>b))(?<x>c)/": {
1420
"error": {
1521
"message": "Invalid regular expression: /(?:(?<x>a)|(?<x>b))(?<x>c)/: Duplicate capture group name",

0 commit comments

Comments
 (0)