diff options
author | Chocobozzz <me@florianbigard.com> | 2018-09-28 16:07:27 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-09-28 16:07:27 +0200 |
commit | e182430ac70505fa1492748ae43e1922826bf206 (patch) | |
tree | 0d3910545a5ba5631764ee2a042b94f64a8a5a3d /client/src/app/videos | |
parent | ba2a95d6fd3d5e788d657ff7eeeea033a697f1c4 (diff) | |
download | PeerTube-e182430ac70505fa1492748ae43e1922826bf206.tar.gz PeerTube-e182430ac70505fa1492748ae43e1922826bf206.tar.zst PeerTube-e182430ac70505fa1492748ae43e1922826bf206.zip |
Update translations
Diffstat (limited to 'client/src/app/videos')
-rw-r--r-- | client/src/app/videos/shared/markdown.service.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/client/src/app/videos/shared/markdown.service.ts b/client/src/app/videos/shared/markdown.service.ts index 3ef16fdb9..b302d9052 100644 --- a/client/src/app/videos/shared/markdown.service.ts +++ b/client/src/app/videos/shared/markdown.service.ts | |||
@@ -71,7 +71,9 @@ export class MarkdownService { | |||
71 | } | 71 | } |
72 | 72 | ||
73 | private avoidTruncatedLinks (html: string) { | 73 | private avoidTruncatedLinks (html: string) { |
74 | return html.replace(/<a[^>]+>([^<]+)<\/a>\s*...((<\/p>)|(<\/li>)|(<\/strong>))?$/mi, '$1...') | 74 | return html.replace(/\*\*?([^*]+)$/, '$1') |
75 | .replace(/<a[^>]+>([^<]+)<\/a>\s*...((<\/p>)|(<\/li>)|(<\/strong>))?$/mi, '$1...') | ||
75 | .replace(/\[[^\]]+\]?\(?([^\)]+)$/, '$1') | 76 | .replace(/\[[^\]]+\]?\(?([^\)]+)$/, '$1') |
77 | |||
76 | } | 78 | } |
77 | } | 79 | } |