Wed, 31 Dec 2014 06:55:50 +0100
Added tag UPSTREAM_283F7C6 for changeset ca08bd8f51b2
1 'abcdef'.replace(/a(\w+)c/, function() {
2 assertEq(RegExp.lastMatch, 'abc');
3 '123456'.replace(/1(\d+)3/, function() {
4 assertEq(RegExp.lastMatch, '123');
5 });
6 assertEq(RegExp.lastMatch, '123');
7 });
8 assertEq(RegExp.lastMatch, 'abc');
9