Skip to content

Commit

Permalink
Fix video timestamp linkify
Browse files Browse the repository at this point in the history
  • Loading branch information
Chocobozzz committed Jan 11, 2024
1 parent 0461ce8 commit 9e9a00d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/app/core/renderer/markdown.service.ts
Expand Up @@ -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({
Expand Down

0 comments on commit 9e9a00d

Please sign in to comment.