Update znbc.co.zm.config.js

This commit is contained in:
freearhey 2021-04-24 13:44:59 +03:00
parent ce88787d45
commit b15ad13706

View file

@ -36,7 +36,10 @@ module.exports = {
const row = (item.querySelector('td > p') || { textContent: '' }).textContent const row = (item.querySelector('td > p') || { textContent: '' }).textContent
const parts = row.split(' ') const parts = row.split(' ')
const time = parts.shift() const time = parts.shift()
const title = parts.filter(str => str && /\S/.test(str)).join(' ') const title = parts
.filter(str => str && /\S/g.test(str))
.map(i => i.trim())
.join(' ')
if (!time || !title) return false if (!time || !title) return false