aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/helpers
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-10-11 14:15:42 +0200
committerChocobozzz <me@florianbigard.com>2021-10-11 14:15:42 +0200
commit4d6952361e5b2d35513036ab5e79da5bcb5bfe81 (patch)
tree2b62647df1434bff9b5cac521c0f32eb60e6c7f2 /server/helpers
parentab632f438efed53e3ed4ba08dd73cc666366af2b (diff)
downloadPeerTube-4d6952361e5b2d35513036ab5e79da5bcb5bfe81.tar.gz
PeerTube-4d6952361e5b2d35513036ab5e79da5bcb5bfe81.tar.zst
PeerTube-4d6952361e5b2d35513036ab5e79da5bcb5bfe81.zip
Fix multiple \n in md to plain text
Diffstat (limited to 'server/helpers')
-rw-r--r--server/helpers/markdown.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/helpers/markdown.ts b/server/helpers/markdown.ts
index 41e57d857..ebf479b98 100644
--- a/server/helpers/markdown.ts
+++ b/server/helpers/markdown.ts
@@ -34,7 +34,7 @@ const mdToPlainText = text => {
34 34
35 return safeHtml.replace(/<[^>]+>/g, '') 35 return safeHtml.replace(/<[^>]+>/g, '')
36 .replace(/\n$/, '') 36 .replace(/\n$/, '')
37 .replace('\n', ', ') 37 .replace(/\n/g, ', ')
38} 38}
39 39
40// --------------------------------------------------------------------------- 40// ---------------------------------------------------------------------------