We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5d1aa22 commit 9c2e5ffCopy full SHA for 9c2e5ff
1 file changed
apps/sim/connectors/zoom/zoom.ts
@@ -152,10 +152,13 @@ function parseVtt(vtt: string): string {
152
if (textParts.length > 0) {
153
const raw = textParts.join(' ')
154
const withSpeakers = raw.replace(/<v(?:\.[^\s>]+)?\s+([^>]+)>([\s\S]*?)<\/v>/g, '$1: $2')
155
- const stripped = withSpeakers
156
- .replace(/<\/?[^>]+>/g, '')
157
- .replace(/\s+/g, ' ')
158
- .trim()
+ let withoutTags = withSpeakers
+ let previous: string
+ do {
+ previous = withoutTags
159
+ withoutTags = withoutTags.replace(/<\/?[^>]+>/g, '')
160
+ } while (withoutTags !== previous)
161
+ const stripped = withoutTags.replace(/\s+/g, ' ').trim()
162
if (stripped) segments.push(stripped)
163
}
164
0 commit comments