also fix URLs containing dashes

master
Tomáš Mládek 2022-07-04 12:24:28 +02:00
parent 0887a5fb08
commit b331e23214
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@
let audioPlayer;
function extract(url) {
const match = url.match(/(youtu\.be\/|v=)([\w]+)/);
const match = url.match(/(youtu\.be\/|v=)([\w-]+)/);
if (match) {
return match[2];
} else {