mirror of
https://github.com/codex-team/editor.js
synced 2024-06-20 06:35:48 +02:00
Youtube regex updated
This commit is contained in:
parent
3125b05fc4
commit
9efee13871
|
@ -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
|
||||
},
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue