fix(rutor): little fix
This commit is contained in:
parent
a982a2cf9d
commit
720946d518
@ -122,6 +122,7 @@ module.exports = class Rutor
|
|||||||
if(!html)
|
if(!html)
|
||||||
return
|
return
|
||||||
html = await html.textConverted()
|
html = await html.textConverted()
|
||||||
|
html = html.replace(/textarea/g, 'div')
|
||||||
const $ = cheerio.load(html)
|
const $ = cheerio.load(html)
|
||||||
const topicTitle = $('h1').text()
|
const topicTitle = $('h1').text()
|
||||||
if(!topicTitle)
|
if(!topicTitle)
|
||||||
|
Loading…
Reference in New Issue
Block a user