Skip to content

Commit 8b2133e

Browse files
committed
fixes #740
1 parent facf568 commit 8b2133e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

client/modules/IDE/components/PreviewFrame.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,8 @@ class PreviewFrame extends React.Component {
241241
// could also pull file from API instead of using bloburl
242242
const blobURL = getBlobUrl(resolvedFile);
243243
this.props.setBlobUrl(resolvedFile, blobURL);
244-
newContent = newContent.replace(filePath, blobURL);
244+
const filePathRegex = new RegExp(filePath, "gi");
245+
newContent = newContent.replace(filePathRegex, blobURL);
245246
}
246247
}
247248
}

0 commit comments

Comments
 (0)