I did a brain fart. Update native lang again. (#197)

Forgot to add the capture group back in :)
This commit is contained in:
Rick Meijer 2021-11-07 17:10:10 +01:00 committed by GitHub
parent b797c50b31
commit 1adf2a2a91
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -139,7 +139,7 @@ const tmdbApi = async (filename, api_key, axios) => {
if (filename.substr(0, 2) === 'tt') {
fileName = filename;
} else {
const idRegex = /tt\d*/;
const idRegex = /(tt\d{7,8})/;
const fileMatch = filename.match(idRegex);
// eslint-disable-next-line prefer-destructuring
if (fileMatch) fileName = fileMatch[1];