Remove url from timestamp title

This commit is contained in:
WardPearce
2024-05-18 19:14:39 +12:00
parent 2f783995b7
commit 7943ef942f
+2 -1
View File
@@ -79,7 +79,8 @@ export function phaseDescription(content: string): PhasedDescription {
const title = timestampMatch[4] || '';
timestamps.push({
time: convertToSeconds(time),
title: decodeHtmlCharCodes(title),
// Remove any URL in the timestamp title.
title: decodeHtmlCharCodes(title.replace(/<a\b[^>]*>(.*?)<\/a>/gi, '')),
timePretty: timestamp
});
} else {