1
0
Fork 0

Fix multiple \n in md to plain text

This commit is contained in:
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

View file

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