1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Merge branch 'master' into sessionQueueFix

This commit is contained in:
Rasmus Krämer 2024-01-07 00:06:55 +01:00 committed by GitHub
commit b5f57109c5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 388 additions and 383 deletions

View file

@ -143,7 +143,9 @@ function normalizeTrackEventText(text, useHtml) {
const result = text
.replace(/\\N/gi, '\n') // Correct newline characters
.replace(/\r/gi, '') // Remove carriage return characters
.replace(/{\\.*?}/gi, ''); // Remove ass/ssa tags
.replace(/{\\.*?}/gi, '') // Remove ass/ssa tags
// Force LTR as the default direction
.split('\n').map(val => `\u200E${val}`).join('\n');
return useHtml ? result.replace(/\n/gi, '<br>') : result;
}