fix(rutor): little fix

This commit is contained in:
Alexey Kasyanchuk 2018-09-02 22:18:09 +03:00
parent a982a2cf9d
commit 720946d518

View File

@ -122,6 +122,7 @@ module.exports = class Rutor
if(!html)
return
html = await html.textConverted()
html = html.replace(/textarea/g, 'div')
const $ = cheerio.load(html)
const topicTitle = $('h1').text()
if(!topicTitle)