diff --git a/helpers.js b/helpers.js index 8cba802..1bfb0d2 100644 --- a/helpers.js +++ b/helpers.js @@ -248,7 +248,7 @@ export async function isFileEmpty(filePath, ignoreComments = false) { export function replaceNames(content, images, uploadedImages) { images.forEach((image, index) => { - content = content.replace(image, uploadedImages[index].fileName); + content = content.replaceAll(image, uploadedImages[index].fileName); }); return content;