mirror of
https://github.com/ThaUnknown/miru.git
synced 2026-04-20 15:12:10 +00:00
fix: ah...
This commit is contained in:
parent
d50f1304c5
commit
7869123930
2 changed files with 2 additions and 2 deletions
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "ui",
|
||||
"version": "6.4.98",
|
||||
"version": "6.4.99",
|
||||
"license": "BUSL-1.1",
|
||||
"private": true,
|
||||
"packageManager": "pnpm@9.15.5",
|
||||
|
|
|
|||
|
|
@ -348,7 +348,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')
|
||||
Text = Text.replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>').replace(/ /g, '\\h').replace(/\r?\n/g, '\\N')
|
||||
} else {
|
||||
Text = Text.replace('\r', '') // some bad subbers put \n in the text, which breaks the rendering
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue