diff --git a/client/modules/IDE/components/PreviewFrame.jsx b/client/modules/IDE/components/PreviewFrame.jsx index 242f59c3..37eed435 100644 --- a/client/modules/IDE/components/PreviewFrame.jsx +++ b/client/modules/IDE/components/PreviewFrame.jsx @@ -241,7 +241,8 @@ class PreviewFrame extends React.Component { // could also pull file from API instead of using bloburl const blobURL = getBlobUrl(resolvedFile); this.props.setBlobUrl(resolvedFile, blobURL); - newContent = newContent.replace(filePath, blobURL); + const filePathRegex = new RegExp(filePath, "gi"); + newContent = newContent.replace(filePathRegex, blobURL); } } }