Skip to content

Commit a11bbc5

Browse files
committed
fix(subtitles): strip all angle brackets — complete sanitization for the CodeQL query
1 parent ddab42d commit a11bbc5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/components/SubtitlesProcessor.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ async function run() {
6767
6868
const outParts: string[] = []
6969
for (const cue of cues) {
70-
const stripped = cue.dialogue.replace(/<[^>]*>/g, "").replace(/[<>]/g, "").trim()
70+
const stripped = cue.dialogue.replace(/[<>]/g, "").trim()
7171
// eslint-disable-next-line no-control-regex -- \x00-\x7F is the full ASCII range
7272
if (!/[^\x00-\x7F]/.test(stripped)) {
7373
outParts.push(`${cue.idx}${cue.time}\n${stripped}`)

0 commit comments

Comments
 (0)