fix: proper fix for subtitle squares on nl

This commit is contained in:
ThaUnknown 2025-07-30 18:06:05 +02:00
parent ec26b46f76
commit d50f1304c5
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View file

@ -1,6 +1,6 @@
{
"name": "ui",
"version": "6.4.97",
"version": "6.4.98",
"license": "BUSL-1.1",
"private": true,
"packageManager": "pnpm@9.15.5",

View file

@ -350,7 +350,7 @@ export default class Subtitles {
// replace all html special tags with normal ones
Text = Text.replace(/&amp;/g, '&').replace(/&lt;/g, '<').replace(/&gt;/g, '>').replace(/&nbsp;/g, '\\h').replace(/1?\n/g, '\\N')
} else {
Text = Text.replace('\n', '') // some bad subbers put \n in the text, which breaks the rendering
Text = Text.replace('\r', '') // some bad subbers put \n in the text, which breaks the rendering
}
return {
Start: subtitle.time,