fix(route/69shu): description is empty (#16080)

This commit is contained in:
eternasuno
2024-07-04 18:51:19 +09:00
committed by GitHub
parent fb6ad9962f
commit 41da83a678
+4 -4
View File
@@ -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>');
};