From 38c49a64adcb7724ee85f8b332127c0d9fbda5b4 Mon Sep 17 00:00:00 2001 From: Roman Axelrod Date: Sun, 8 Dec 2024 18:43:39 -0700 Subject: [PATCH] Make sure all images are updated on Global Blocks. --- helpers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;