Skip to content

Commit

Permalink
fix #414
Browse files Browse the repository at this point in the history
  • Loading branch information
zloirock committed Jul 13, 2018
1 parent 028dd85 commit 16dbccf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/core-js/modules/es.string.pad-end.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ var internalStringPad = require('../internals/string-pad');
var userAgent = require('../internals/user-agent');

// https://github.com/zloirock/core-js/issues/280
var WEBKIT_BUG = /Version\/10\.\d+(\.\d+)? Safari\//.test(userAgent);
var WEBKIT_BUG = /Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(userAgent);

// `String.prototype.padEnd` method
// https://tc39.github.io/ecma262/#sec-string.prototype.padend
Expand Down
2 changes: 1 addition & 1 deletion packages/core-js/modules/es.string.pad-start.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ var internalStringPad = require('../internals/string-pad');
var userAgent = require('../internals/user-agent');

// https://github.com/zloirock/core-js/issues/280
var WEBKIT_BUG = /Version\/10\.\d+(\.\d+)? Safari\//.test(userAgent);
var WEBKIT_BUG = /Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(userAgent);

// `String.prototype.padStart` method
// https://tc39.github.io/ecma262/#sec-string.prototype.padstart
Expand Down

4 comments on commit 16dbccf

@AlgusDark
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@zloirock can we add this fix into corejs@2?

@zloirock
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok.

@zloirock
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@AlgusDark
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot!

Please sign in to comment.