diff --git a/package.json b/package.json index 5ce31b5..16cf829 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/lib/components/ui/player/subtitles.ts b/src/lib/components/ui/player/subtitles.ts index 4116156..927db4c 100644 --- a/src/lib/components/ui/player/subtitles.ts +++ b/src/lib/components/ui/player/subtitles.ts @@ -350,7 +350,7 @@ export default class Subtitles { // replace all html special tags with normal ones Text = Text.replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>').replace(/ /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,