0
0
Fork 0
mirror of https://github.com/VueTubeApp/VueTube synced 2024-11-18 01:05:13 +00:00
This commit is contained in:
Alex 2022-04-05 21:04:17 +12:00
parent 94e0108197
commit 89e06164af

View file

@ -41,6 +41,7 @@ function getMutationByKey(key, mutations) {
if (!key || !mutations) return undefined; if (!key || !mutations) return undefined;
return mutations.find((mutation) => mutation.entityKey === key).payload; return mutations.find((mutation) => mutation.entityKey === key).payload;
} }
function linkParser(url) { function linkParser(url) {
var regExp = /^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#&?]*).*/; var regExp = /^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#&?]*).*/;