This commit is contained in:
Cassie Tarakajian 2018-10-23 16:07:32 -04:00
parent facf568f7d
commit 8b2133ea99

View file

@ -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);
}
}
}