match youtu.be

This commit is contained in:
Flummi 2016-09-13 21:42:38 +02:00
parent 5ad62b5c5d
commit 285b97f798

View File

@ -61,7 +61,7 @@ module.exports = (bot, lib) => {
});
var getLink = (url, cb) => {
var yt = /https?:\/\/(www\.)?(yotu\.be\/|youtube\.com\/)((.+\/)?(watch(\?v=|.+&v=))?(v=)?)([\w_-]{11})(&.+)?/gi;
var yt = /https?:\/\/(www\.)?youtu(\.be\/|be\.com\/)((.+\/)?(watch(\?v=|.+&v=))?(v=)?)([\w_-]{11})(&.+)?/gi;
var sc = /https?:\/\/(www\.)?(soundcloud\.com|snd\.sc)(\/\S*)(\/\S*)/gi;
lib.checkRepost(url, (cbcr) => {
if(cbcr === true) {