mirror of
https://github.com/informaticker/discord-jellyfin-bot.git
synced 2024-11-23 18:21:55 +01:00
return 1 regex result for itemIds
This commit is contained in:
parent
8ae3cfa3bb
commit
fb38c2b37d
@ -1,6 +1,6 @@
|
|||||||
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;
|
return [regexresult[0]];
|
||||||
}
|
}
|
||||||
|
|
||||||
function ticksToSeconds (ticks) {
|
function ticksToSeconds (ticks) {
|
||||||
|
Loading…
Reference in New Issue
Block a user