From ccf4163c7ecc6ba4a74cb9031f797c61469cdcec Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk Date: Tue, 12 Apr 2022 19:28:06 +0300 Subject: [PATCH] Update channels.js --- scripts/db/schemes/channels.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/db/schemes/channels.js b/scripts/db/schemes/channels.js index 29b007dc..2d4c0f5e 100644 --- a/scripts/db/schemes/channels.js +++ b/scripts/db/schemes/channels.js @@ -46,7 +46,7 @@ module.exports = { }) .custom((value, helper) => { const ext = path.extname(value) - if (!ext || /(\.png|\.jpeg|\.jpg)/i.test(ext)) { + if (!ext || /(\.svg|\.png|\.jpeg|\.jpg)/i.test(ext)) { return true } else { return helper.message(`"logo" has an invalid file extension "${ext}"`)