From c28c39bc6431fc95a47d53cb43d94a4e473c7f98 Mon Sep 17 00:00:00 2001 From: Baptiste Arnaud Date: Mon, 26 May 2025 18:57:35 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Normalize=20file=20type=20extens?= =?UTF-8?q?ion=20comparison=20in=20parseReply=20function?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/bot-engine/src/continueBotFlow.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/bot-engine/src/continueBotFlow.ts b/packages/bot-engine/src/continueBotFlow.ts index b70507815..e07af050d 100644 --- a/packages/bot-engine/src/continueBotFlow.ts +++ b/packages/bot-engine/src/continueBotFlow.ts @@ -887,7 +887,8 @@ const parseReply = async ( const extension = url.split(".").pop(); if (!extension) return false; return allowedFileTypesMetadata.some( - (metadata) => metadata.extension === extension, + (metadata) => + metadata.extension.toLowerCase() === extension.toLowerCase(), ); }) : true;