From d3879635a81effdbb4fa1000dcb10c68aa861d5b Mon Sep 17 00:00:00 2001 From: joan Date: Wed, 24 Feb 2021 15:54:02 +0100 Subject: [PATCH] Regex changes --- modules/item/back/methods/item-image-queue/downloadImages.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/item/back/methods/item-image-queue/downloadImages.js b/modules/item/back/methods/item-image-queue/downloadImages.js index 713761df5..16ad33ce3 100644 --- a/modules/item/back/methods/item-image-queue/downloadImages.js +++ b/modules/item/back/methods/item-image-queue/downloadImages.js @@ -47,7 +47,7 @@ module.exports = Self => { if (!image) return; const srcFile = image.url; - const fileName = srcFile.replace(/\.|\/|:/g, ''); + const fileName = srcFile.replace(/\.|\/|:|\?|\\/g, ''); const file = `${fileName}.png`; const filePath = path.join(tempPath, file);