Made imdb regex ungreedy

This commit is contained in:
jeanchristophe.mqt@gmail.com 2024-04-12 10:18:26 +02:00
parent 3a03b7ed46
commit 86c536252a
2 changed files with 2 additions and 2 deletions

View file

@ -126,7 +126,7 @@ const getFileInfoFromLookup = async (
)
: Promise<IFileInfo> => {
let fInfo: IFileInfo = { id: '-1' };
const imdbId = /\b(tt|nm|co|ev|ch|ni)\d{7,10}\b/i.exec(fileName)?.at(0) ?? '';
const imdbId = /\b(tt|nm|co|ev|ch|ni)\d{7,10}?\b/i.exec(fileName)?.at(0) ?? '';
if (imdbId !== '') {
const lookupResponse: ILookupResponse = await args.deps.axios({
method: 'get',