1
0
mirror of https://github.com/mifi/lossless-cut.git synced 2024-11-22 02:12:30 +01:00

Allows semicolons directly after timestamps in timestamp import

This commit is contained in:
James Kerrane 2023-07-03 14:01:36 -06:00 committed by Mikael Finstad
parent 8c3eee282c
commit 1cd5956523

View File

@ -189,7 +189,7 @@ export function parseYouTube(str) {
}
const lines = str.split('\n').map((lineStr) => {
const match = lineStr.match(/(?:([0-9]{1,}):)?([0-9]{1,2}):([0-9]{1,2})(?:\.([0-9]{3}))?[\s-]+([^\n]*)$/);
const match = lineStr.match(/(?:([0-9]{1,}):)?([0-9]{1,2}):([0-9]{1,2})(?:\.([0-9]{3}))?[\s-:]+([^\n]*)$/);
return parseLine(match);
}).filter((line) => line);