We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a4ad22f commit 2706ba4Copy full SHA for 2706ba4
test/built-ins/RegExp/named-groups/duplicate-names.js
@@ -17,3 +17,6 @@ assert.compareArray(["bb", undefined, "bb"], "bb".match(/(?:(?<x>a)|(?<x>b))\k<x
17
let matchResult = "aabb".match(/(?:(?:(?<x>a)|(?<x>b))\k<x>){2}/);
18
assert.compareArray(["aabb", undefined, "bb"], matchResult);
19
assert.sameValue(matchResult.groups.x, "bb");
20
+
21
+let notMatched = "abab".match(/(?:(?:(?<x>a)|(?<x>b))\k<x>){2}/);
22
+assert.sameValue(null, notMatched);
0 commit comments