We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb46db3 commit 681402bCopy full SHA for 681402b
src/components/write/WriteMarkdownEditor.tsx
@@ -1121,7 +1121,7 @@ const checker = {
1121
},
1122
codesandbox: (text: string) => {
1123
const regex =
1124
- /^<iframe.*src="https:\/\/codesandbox.io\/embed\/(.*?)".*<\/iframe>$/s;
+ /^<iframe[\s\S]*src="https:\/\/codesandbox.io\/embed\/(.*?)"[\s\S]*<\/iframe>$/;
1125
const result = regex.exec(text);
1126
if (!result) return null;
1127
return result[1];
0 commit comments