From 9a6b68937755f57a23650d0c6ad1177b5ef0aa04 Mon Sep 17 00:00:00 2001 From: Mikael Finstad Date: Sun, 24 Oct 2021 22:29:49 +0700 Subject: [PATCH] implement more lax potplayer matching #867 --- src/edlFormats.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/edlFormats.js b/src/edlFormats.js index 8f3a138c..2d3c9853 100644 --- a/src/edlFormats.js +++ b/src/edlFormats.js @@ -91,7 +91,7 @@ export function parseCuesheet(cuesheet) { export function parsePbf(text) { const chapters = text.split('\n').map((line) => { - const match = line.match(/^[0-9]+=([0-9]+)\*([^*]+)*/); + const match = line.match(/^[0-9]+=([0-9]+)\*([^*]+)*([^*]+)?/); if (match) return { time: parseInt(match[1], 10) / 1000, name: match[2] }; return undefined; }).filter((it) => it);