There was an error while loading. Please reload this page.
1 parent ddab42d commit a11bbc5Copy full SHA for a11bbc5
1 file changed
src/components/SubtitlesProcessor.vue
@@ -67,7 +67,7 @@ async function run() {
67
68
const outParts: string[] = []
69
for (const cue of cues) {
70
- const stripped = cue.dialogue.replace(/<[^>]*>/g, "").replace(/[<>]/g, "").trim()
+ const stripped = cue.dialogue.replace(/[<>]/g, "").trim()
71
// eslint-disable-next-line no-control-regex -- \x00-\x7F is the full ASCII range
72
if (!/[^\x00-\x7F]/.test(stripped)) {
73
outParts.push(`${cue.idx}${cue.time}\n${stripped}`)
0 commit comments