From c2a22044377077d2d67f85655fb305fcd34b099a Mon Sep 17 00:00:00 2001 From: joan Date: Wed, 24 Feb 2021 16:04:09 +0100 Subject: [PATCH] Regex change --- 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 2f591ad4b..2d2e8af91 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);