mirror of
https://github.com/baptisteArno/typebot.io.git
synced 2026-06-25 21:01:54 +08:00
🐛 Normalize file type extension comparison in parseReply function
This commit is contained in:
parent
0a34f7a8c8
commit
c28c39bc64
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user