blob: 6518708f73b8ed13134e85f8cc657ff9f533c79e [file] [log] [blame]
description(
'Tests some regular expressions that were doing the wrong thing with the "find first asserted" optimization.'
);
shouldBe('/.*<body>(.*)<\\/body>.*/.exec("foo<body>bar</body>baz").toString()', '"foo<body>bar</body>baz,bar"');
shouldBe('/\\s*<!--([\s\S]*)\\/\\/\\s*-->\\s*/.exec("<!--// -->").toString()', '"<!--// -->,"');
debug('');