Skip to content

Commit

Permalink
improve srt parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
mifi committed Mar 14, 2024
1 parent 287c7c3 commit 762072a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/edlFormats.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 762072a

Please sign in to comment.