This commit is contained in:
Luk 2025-08-21 10:00:33 +08:00
parent 612f8ed85e
commit 0c05bfd464

View File

@ -349,7 +349,7 @@ module.exports = {
story story
.map(({ text = '' } = {}) => { .map(({ text = '' } = {}) => {
if (typeof text === 'string') return text.trim?.()?.replace?.(/\n+/g, ' ') if (typeof text === 'string') return text.trim?.()?.replace?.(/\n+/g, ' ')
else if (typeof text === 'object') return text[lang]?.trim?.()?.replace?.(/\n+/g, ' ') else if (typeof text === 'object') return (text[lang] || text['enUS'])?.trim?.()?.replace?.(/\n+/g, ' ')
}) })
?.join(' ') ?.join(' ')
?.trim?.() ?.trim?.()