From 9e9a00d7f83d445c9cb11bd1732f52f479d5024c Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 11 Jan 2024 10:47:36 +0100 Subject: [PATCH] Fix video timestamp linkify --- client/src/app/core/renderer/markdown.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/app/core/renderer/markdown.service.ts b/client/src/app/core/renderer/markdown.service.ts index 499ce520e..b23ea4f72 100644 --- a/client/src/app/core/renderer/markdown.service.ts +++ b/client/src/app/core/renderer/markdown.service.ts @@ -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({