From fb38c2b37d67064d84f03fa29b84b891eea6fe25 Mon Sep 17 00:00:00 2001 From: KGT1 Date: Sun, 17 Jan 2021 05:27:53 +0100 Subject: [PATCH] return 1 regex result for itemIds --- src/util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util.js b/src/util.js index 48bfa08..17211fa 100644 --- a/src/util.js +++ b/src/util.js @@ -1,6 +1,6 @@ function checkJellyfinItemIDRegex (strgintomatch) { const regexresult = strgintomatch.match(/([0-9]|[a-f]){32}/); - return regexresult; + return [regexresult[0]]; } function ticksToSeconds (ticks) {