Skip to content

Commit

Permalink
Set prototype of RegExp correctly. (exceljs#1700)
Browse files Browse the repository at this point in the history
Co-authored-by: Siemienik Pawel <[email protected]>
  • Loading branch information
joeldenning and Siemienik authored Nov 18, 2021
1 parent dc45ddf commit d786c4d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ try {
}
return new RegExp(pattern, flags);
};
global.RegExp.prototype = RegExp;
global.RegExp.prototype = RegExp.prototype;
}
```

Expand Down
2 changes: 1 addition & 1 deletion README_zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ try {
}
return new RegExp(pattern, flags);
};
global.RegExp.prototype = RegExp;
global.RegExp.prototype = RegExp.prototype;
}
```

Expand Down

0 comments on commit d786c4d

Please sign in to comment.