match youtu.be
This commit is contained in:
parent
5ad62b5c5d
commit
285b97f798
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user