Skip to content

Commit 219b688

Browse files
committed
fix dotAll entry
1 parent 8d931af commit 219b688

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

packages/core-js/es/regexp/dot-all.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ require('../../modules/es.regexp.dot-all');
33
require('../../modules/es.regexp.exec');
44

55
module.exports = function (it) {
6-
return it.sticky;
6+
return it.dotAll;
77
};

tests/commonjs.js

+1
Original file line numberDiff line numberDiff line change
@@ -1666,6 +1666,7 @@ for (PATH of ['core-js-pure', 'core-js']) {
16661666
load(`${ key }/date/set-year`)(date, 1);
16671667
ok(date.getFullYear() === 1901);
16681668
ok(load(`${ key }/date/to-gmt-string`)(date) === date.toUTCString());
1669+
ok(typeof load(`${ key }/string/dot-all`) === 'function');
16691670
ok(load(`${ key }/string/substr`)('12345', 1, 3) === '234');
16701671
ok(load(`${ key }/string/virtual/substr`).call('12345', 1, 3) === '234');
16711672
ok(load(`${ key }/escape`)('!q2ф') === '%21q2%u0444');

0 commit comments

Comments
 (0)