mirror of
https://github.com/iptv-org/database.git
synced 2024-11-24 19:51:25 -05:00
Update channels.js
This commit is contained in:
parent
b9bd3ed0bd
commit
a4a8c0b688
1 changed files with 1 additions and 1 deletions
|
@ -53,7 +53,7 @@ module.exports = {
|
|||
scheme: ['https']
|
||||
})
|
||||
.custom((value, helper) => {
|
||||
const ext = path.extname(value)
|
||||
const ext = path.extname(path.basename(value))
|
||||
if (!ext || /(\.png|\.jpeg|\.jpg)/i.test(ext)) {
|
||||
return true
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue