diff --git a/common/subtitle-reader/subtitle-reader.ts b/common/subtitle-reader/subtitle-reader.ts index f9a6d37b..5a8e5d2d 100755 --- a/common/subtitle-reader/subtitle-reader.ts +++ b/common/subtitle-reader/subtitle-reader.ts @@ -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');