Youtube regex updated

This commit is contained in:
George Berezhnoy 2017-01-23 22:09:45 +03:00
parent 3125b05fc4
commit 9efee13871

View file

@ -38,7 +38,7 @@ pasteTool.patterns = [
},
{
type: 'youtube',
regex: /^.*(?:(?:youtu\.be\/)|(?:youtube\.com)\/|v\/|u\/\w\/|embed\/|watch\?v=|\&v=)([^#\&\?]*)(?:[\?\&]t\=(\d*)|)/,
regex: /(?:https?:\/{2})?(?:w{3}\.)?youtu(?:be)?\.(?:com|be)(?:\/watch\?v=|\/)([^\s&]+)/,
callback: embed.urlPastedCallback
},
{