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 facf568 commit 8b2133eCopy full SHA for 8b2133e
client/modules/IDE/components/PreviewFrame.jsx
@@ -241,7 +241,8 @@ class PreviewFrame extends React.Component {
241
// could also pull file from API instead of using bloburl
242
const blobURL = getBlobUrl(resolvedFile);
243
this.props.setBlobUrl(resolvedFile, blobURL);
244
- newContent = newContent.replace(filePath, blobURL);
+ const filePathRegex = new RegExp(filePath, "gi");
245
+ newContent = newContent.replace(filePathRegex, blobURL);
246
}
247
248
0 commit comments