Fix video timestamp linkify

This commit is contained in:
Chocobozzz 2024-01-11 10:47:36 +01:00
parent 0461ce8d24
commit 9e9a00d7f8
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 1 additions and 1 deletions

View File

@ -103,7 +103,7 @@ export class MarkdownService {
// ---------------------------------------------------------------------------
processVideoTimestamps (videoShortUUID: string, html: string) {
return html.replace(/((\d{1,2}):)?(\d{1,2}):(\d{1,2})/g, function (str, _, h, m, s) {
return html.replace(/\b((\d{1,2}):)?(\d{1,2}):(\d{1,2})\b/g, function (str, _, h, m, s) {
const t = (3600 * +(h || 0)) + (60 * +(m || 0)) + (+(s || 0))
const url = decorateVideoLink({