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:
parent
8c3eee282c
commit
1cd5956523
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user