Update channels.js

This commit is contained in:
Aleksandr Statciuk 2022-04-13 13:54:36 +03:00
parent d04720eb4d
commit 9dc90f4787

View file

@ -46,7 +46,7 @@ module.exports = {
}) })
.custom((value, helper) => { .custom((value, helper) => {
const ext = path.extname(value) const ext = path.extname(value)
if (!ext || /(\.svg|\.png|\.jpeg|\.jpg)/i.test(ext)) { if (!ext || /(\.png|\.jpeg|\.jpg)/i.test(ext)) {
return true return true
} else { } else {
return helper.message(`"logo" has an invalid file extension "${ext}"`) return helper.message(`"logo" has an invalid file extension "${ext}"`)