Fix multiple \n in md to plain text

pull/4461/head
Chocobozzz 2021-10-11 14:15:42 +02:00
parent ab632f438e
commit 4d6952361e
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ const mdToPlainText = text => {
return safeHtml.replace(/<[^>]+>/g, '')
.replace(/\n$/, '')
.replace('\n', ', ')
.replace(/\n/g, ', ')
}
// ---------------------------------------------------------------------------