Fixed minor linting error due to pull request #345. (#346)

This commit is contained in:
Giuseppe Montuoro 2021-03-20 16:22:06 +01:00 committed by GitHub
parent a129ac0240
commit 55234af08f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2650 additions and 4 deletions

View file

@ -174,9 +174,8 @@ function checkInputConflicts(videoUrls: Array<string | number> | undefined,
function isOutputTemplateValid(argv: any): boolean {
let finalTemplate: string = argv.outputTemplate;
const elementRegEx = RegExp(/{(.*?)}/g);
let match = elementRegEx.exec(finalTemplate);
let match = elementRegEx.exec(argv.outputTemplate);
// if no template elements this fails
if (match) {
@ -191,11 +190,11 @@ function isOutputTemplateValid(argv: any): boolean {
process.exit(1);
}
match = elementRegEx.exec(finalTemplate);
match = elementRegEx.exec(argv.outputTemplate);
}
}
argv.outputTemplate = sanitize(finalTemplate.trim());
argv.outputTemplate = sanitize(argv.outputTemplate.trim());
return true;
}

2647
yarn.lock Normal file

File diff suppressed because it is too large Load diff