From c717eb152c1fae65ad76b1178255cbecad4f895f Mon Sep 17 00:00:00 2001 From: KGT1 Date: Mon, 18 Jan 2021 07:03:05 +0100 Subject: [PATCH] fix false return --- src/util.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/util.js b/src/util.js index 17211fa..c8e1b6e 100644 --- a/src/util.js +++ b/src/util.js @@ -1,6 +1,9 @@ function checkJellyfinItemIDRegex (strgintomatch) { const regexresult = strgintomatch.match(/([0-9]|[a-f]){32}/); - return [regexresult[0]]; + if(regexresult) + return [regexresult[0]]; + else + return undefined; } function ticksToSeconds (ticks) {