1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 04:46:40 +07:00

better youtube embeds

This commit is contained in:
Fedor Katurov 2019-11-26 12:04:19 +07:00
parent b87487ed1f
commit ff249e0107
5 changed files with 96 additions and 10 deletions

View file

@ -10,7 +10,7 @@ export const COMMENT_BLOCK_TYPES = {
export const COMMENT_BLOCK_DETECTORS = [
{
type: COMMENT_BLOCK_TYPES.EMBED,
test: /(https?:\/\/(www\.)?(youtube\.com|youtu\.be)\/(watch)?(\?v=)?[\w\-]+)/gim,
test: /(https?:\/\/(www\.)?(youtube\.com|youtu\.be)\/(watch)?(\?v=)?[\w\-\&\=]+)/gim,
},
{
type: COMMENT_BLOCK_TYPES.MARK,