fixes #740
This commit is contained in:
parent
facf568f7d
commit
8b2133ea99
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue