mirror of
https://github.com/codex-team/editor.js
synced 2024-06-27 09:50:05 +02:00
Youtube regex updated
This commit is contained in:
parent
3125b05fc4
commit
9efee13871
|
@ -38,7 +38,7 @@ pasteTool.patterns = [
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'youtube',
|
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
|
callback: embed.urlPastedCallback
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue