From 8b2133ea998c106eb1edf95fb27f1b7d649e215e Mon Sep 17 00:00:00 2001 From: Cassie Tarakajian Date: Tue, 23 Oct 2018 16:07:32 -0400 Subject: [PATCH] fixes #740 --- client/modules/IDE/components/PreviewFrame.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); } } }