diff --git a/CHANGELOG.md b/CHANGELOG.md index b6c93ee3c0d1..e66986d3cafb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ ## Changelog ##### Unreleased -- Nothing +- Safari 10 string padding bug detection extend to some Safari-based browsers ##### 3.10.0 - 2021.03.31 - [`Array` find from last proposal](https://github.com/tc39/proposal-array-find-from-last) moved to the stage 2, [March TC39 meeting](https://github.com/babel/proposals/issues/71#issuecomment-795916535) diff --git a/packages/core-js/internals/string-pad-webkit-bug.js b/packages/core-js/internals/string-pad-webkit-bug.js index 0bcdb925c354..799c9303c07e 100644 --- a/packages/core-js/internals/string-pad-webkit-bug.js +++ b/packages/core-js/internals/string-pad-webkit-bug.js @@ -2,4 +2,4 @@ var userAgent = require('../internals/engine-user-agent'); // eslint-disable-next-line unicorn/no-unsafe-regex -- safe -module.exports = /Version\/10(?:\.\d+){1,2}(?: Mobile\/\w+)? Safari\//.test(userAgent); +module.exports = /Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(userAgent); diff --git a/tests/compat/tests.js b/tests/compat/tests.js index 1212a9e2ac03..6f61db5052cf 100644 --- a/tests/compat/tests.js +++ b/tests/compat/tests.js @@ -27,7 +27,7 @@ if (v8) { var IS_NODE = Object.prototype.toString.call(process) == '[object process]'; // eslint-disable-next-line unicorn/no-unsafe-regex -- safe -var WEBKIT_STRING_PAD_BUG = /Version\/10(?:\.\d+){1,2}?(?: Mobile\/\w+)? Safari\//.test(USERAGENT); +var WEBKIT_STRING_PAD_BUG = /Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(USERAGENT); var DESCRIPTORS_SUPPORT = function () { return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a == 7;