fix false return

This commit is contained in:
KGT1 2021-01-18 07:03:05 +01:00
parent 0db64a3ee2
commit c717eb152c

View File

@ -1,6 +1,9 @@
function checkJellyfinItemIDRegex (strgintomatch) { function checkJellyfinItemIDRegex (strgintomatch) {
const regexresult = strgintomatch.match(/([0-9]|[a-f]){32}/); const regexresult = strgintomatch.match(/([0-9]|[a-f]){32}/);
if(regexresult)
return [regexresult[0]]; return [regexresult[0]];
else
return undefined;
} }
function ticksToSeconds (ticks) { function ticksToSeconds (ticks) {