This commit is contained in:
Tuxedo Takodachi 2023-04-30 15:43:14 +02:00
parent 4da80d4400
commit 2358ca2cd8

View File

@ -668,7 +668,7 @@ var Embedding = {
}
, {
key: 'YouTube',
regExp: /^\w+:\/\/(?:youtu.be\/|[\w.]*youtube[\w.]*\/.*(?:v=|\bembed\/|\bv\/))([\w\-]{11})(.*)/,
regExp: /^\w+:\/\/(?:youtu.be\/|[\w.]*youtube[\w.]*\/.*(?:v=|\bembed\/|\bv\/|live\/))([\w\-]{11})(.*)/,
el(a) {
let start = a.dataset.options.match(/\b(?:star)?t\=(\w+)/);
if (start) { start = start[1]; }