Skip to content

Commit

Permalink
fix dotAll entry
Browse files Browse the repository at this point in the history
  • Loading branch information
zloirock committed Jun 20, 2021
1 parent 8d931af commit 219b688
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core-js/es/regexp/dot-all.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ require('../../modules/es.regexp.dot-all');
require('../../modules/es.regexp.exec');

module.exports = function (it) {
return it.sticky;
return it.dotAll;
};
1 change: 1 addition & 0 deletions tests/commonjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -1666,6 +1666,7 @@ for (PATH of ['core-js-pure', 'core-js']) {
load(`${ key }/date/set-year`)(date, 1);
ok(date.getFullYear() === 1901);
ok(load(`${ key }/date/to-gmt-string`)(date) === date.toUTCString());
ok(typeof load(`${ key }/string/dot-all`) === 'function');
ok(load(`${ key }/string/substr`)('12345', 1, 3) === '234');
ok(load(`${ key }/string/virtual/substr`).call('12345', 1, 3) === '234');
ok(load(`${ key }/escape`)('!q2ф') === '%21q2%u0444');
Expand Down

0 comments on commit 219b688

Please sign in to comment.