mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-09-01 14:57:14 +08:00
fix(route/69shu): description is empty (#16080)
This commit is contained in:
@@ -88,9 +88,9 @@ const decrypt = (txt: string, articleid: string, chapterid: string, decryptionMa
|
||||
}
|
||||
|
||||
return txt
|
||||
.replaceAll(/\u2003|\n/g, '')
|
||||
.split('<br><br>')
|
||||
.map((line, index, array) => (lineMap[index] ? array[lineMap[index]] : line))
|
||||
.slice(1, -1)
|
||||
.join('<br><br>')
|
||||
.replaceAll(/\u2003|(<div[\S\s]*?<\/div>)/g, '');
|
||||
.flatMap((line, index, array) => (lineMap[index] ? array[lineMap[index]] : line).split('<br>'))
|
||||
.slice(1, -2)
|
||||
.join('<br><br>');
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user