Skip to content

Commit

Permalink
chore: fix regular parsing errors. fix #733
Browse files Browse the repository at this point in the history
  • Loading branch information
JeromeLin committed Aug 17, 2021
1 parent 03d1f22 commit 79c4eb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/site/demo/components/Demo.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export default ({ location, globalContext, children }) => {
// mountNode,
// );
.replace(
/ReactDOM.render\(\s?([^]+?)(,([\r\n])(\s)*mountNode,\s?\))/g,
/ReactDOM.render\(\s?([^]+?)(,([\r\n])(\s)*mountNode,(\s)*\))/g,
`ReactDOM.render($1, document.getElementById('${containerId}'))`,
);

Expand Down

0 comments on commit 79c4eb3

Please sign in to comment.