9 lines
349 B
JavaScript
9 lines
349 B
JavaScript
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('');
|