mirror of
https://github.com/ThaUnknown/miru.git
synced 2026-05-02 19:04:15 +00:00
fix: proper fix for subtitle squares on nl
This commit is contained in:
parent
ec26b46f76
commit
d50f1304c5
2 changed files with 2 additions and 2 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "ui",
|
"name": "ui",
|
||||||
"version": "6.4.97",
|
"version": "6.4.98",
|
||||||
"license": "BUSL-1.1",
|
"license": "BUSL-1.1",
|
||||||
"private": true,
|
"private": true,
|
||||||
"packageManager": "pnpm@9.15.5",
|
"packageManager": "pnpm@9.15.5",
|
||||||
|
|
|
||||||
|
|
@ -350,7 +350,7 @@ export default class Subtitles {
|
||||||
// replace all html special tags with normal ones
|
// 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(/1?\n/g, '\\N')
|
||||||
} else {
|
} 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 {
|
return {
|
||||||
Start: subtitle.time,
|
Start: subtitle.time,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue