summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/bug683838.js
blob: 841376c0315980b91f18cbe644775eac70657917 (plain)
1
2
3
var rg = /(X(?:.(?!X))*?Y)|(Y(?:.(?!Y))*?Z)/g;
var str = "Y aaa X Match1 Y aaa Y Match2 Z";
assertEq(str.match(rg) + "", "X Match1 Y,Y Match2 Z");