Port youtube live embed fix from https://github.com/ccd0/4chan-x/pull/3352
This commit is contained in:
parent
4da80d4400
commit
2358ca2cd8
@ -668,7 +668,7 @@ var Embedding = {
|
|||||||
}
|
}
|
||||||
, {
|
, {
|
||||||
key: 'YouTube',
|
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) {
|
el(a) {
|
||||||
let start = a.dataset.options.match(/\b(?:star)?t\=(\w+)/);
|
let start = a.dataset.options.match(/\b(?:star)?t\=(\w+)/);
|
||||||
if (start) { start = start[1]; }
|
if (start) { start = start[1]; }
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user