Skip to content

Commit

Permalink
vtt class regex matches '</c>' (no class name following) as well
Browse files Browse the repository at this point in the history
  • Loading branch information
killergerbah committed Apr 1, 2024
1 parent 6c013d8 commit 2ec6dc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/subtitle-reader/subtitle-reader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { XMLParser } from 'fast-xml-parser';
import { SubtitleTextImage } from '@project/common';

const tagRegex = RegExp(/<([^>]+)>([^]*)<\/\1>/, 'ig');
const vttClassRegex = /<(\/)?c.[^>]+>/g;
const vttClassRegex = /<(\/)?c(\.[^>]*)?>/g;
const assNewLineRegex = RegExp(/\\[nN]/, 'ig');
const helperElement = document.createElement('div');

Expand Down

0 comments on commit 2ec6dc1

Please sign in to comment.