mirror of
https://github.com/informaticker/discord-jellyfin-bot.git
synced 2024-11-23 18:21:55 +01:00
fix false return
This commit is contained in:
parent
0db64a3ee2
commit
c717eb152c
@ -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}/);
|
||||||
return [regexresult[0]];
|
if(regexresult)
|
||||||
|
return [regexresult[0]];
|
||||||
|
else
|
||||||
|
return undefined;
|
||||||
}
|
}
|
||||||
|
|
||||||
function ticksToSeconds (ticks) {
|
function ticksToSeconds (ticks) {
|
||||||
|
Loading…
Reference in New Issue
Block a user