mirror of
https://github.com/iptv-org/database.git
synced 2024-11-13 23:32:31 -05:00
Merge branch 'master' into pull-data-from-wiki
This commit is contained in:
commit
afaf3aef07
1 changed files with 1 additions and 1 deletions
|
@ -46,7 +46,7 @@ module.exports = {
|
||||||
})
|
})
|
||||||
.custom((value, helper) => {
|
.custom((value, helper) => {
|
||||||
const ext = path.extname(value)
|
const ext = path.extname(value)
|
||||||
if (!ext || /(\.png|\.jpeg|\.jpg)/i.test(ext)) {
|
if (!ext || /(\.svg|\.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}"`)
|
||||||
|
|
Loading…
Reference in a new issue