Skip to content

Commit

Permalink
Fix String#replace bug with custon exec in IE8
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo committed Nov 13, 2018
1 parent b8f73b1 commit 823756a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core-js/modules/es.string.replace.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ require('../internals/fix-regexp-well-known-symbol-logic')(
}
return nativeReplace.call(replacement, symbols, function (match, ch) {
var capture;
switch (ch[0]) {
switch (ch.charAt(0)) {
case '$': return '$';
case '&': return matched;
case '`': return str.slice(0, position);
Expand Down

0 comments on commit 823756a

Please sign in to comment.