kopia lustrzana https://github.com/mifi/lossless-cut
improve srt parsing
rodzic
287c7c3614
commit
762072a347
|
@ -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();
|
||||
|
|
Ładowanie…
Reference in New Issue