diff --git a/sites/znbc.co.zm.config.js b/sites/znbc.co.zm.config.js index dbc2ceff..f36d259a 100644 --- a/sites/znbc.co.zm.config.js +++ b/sites/znbc.co.zm.config.js @@ -36,7 +36,10 @@ module.exports = { const row = (item.querySelector('td > p') || { textContent: '' }).textContent const parts = row.split(' ') 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