diff --git a/src/edlFormats.ts b/src/edlFormats.ts index ef9607b..90d472f 100644 --- a/src/edlFormats.ts +++ b/src/edlFormats.ts @@ -322,7 +322,7 @@ export function parseSrt(text: string) { }; // eslint-disable-next-line no-restricted-syntax - for (const lineRaw of text.trim().split('\r\n')) { + for (const lineRaw of text.trim().split(/\r?\n/)) { const line = lineRaw.trim(); if (line === '') { flush();