diff options
author | lfbrock <lfbrock@users.noreply.github.com> | 2016-09-29 06:56:50 -0700 |
---|---|---|
committer | Joram Wilander <jwawilander@gmail.com> | 2016-09-29 09:56:50 -0400 |
commit | ac6ae23c8e72b0b79998c32b0e91873ed2bb0e59 (patch) | |
tree | 31245d3ef82bc4b926e595fc03877c48f1b9b3a9 /webapp/components/youtube_video.jsx | |
parent | d298e99d9b37aeedf8e40770aeed62c4c8ff1049 (diff) | |
download | chat-ac6ae23c8e72b0b79998c32b0e91873ed2bb0e59.tar.gz chat-ac6ae23c8e72b0b79998c32b0e91873ed2bb0e59.tar.bz2 chat-ac6ae23c8e72b0b79998c32b0e91873ed2bb0e59.zip |
Add 'm.youtube.com/...' to be recognized as a YouTube link in the embedded post content. (#4114)
Diffstat (limited to 'webapp/components/youtube_video.jsx')
-rw-r--r-- | webapp/components/youtube_video.jsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/webapp/components/youtube_video.jsx b/webapp/components/youtube_video.jsx index 0012b1e98..d551364f3 100644 --- a/webapp/components/youtube_video.jsx +++ b/webapp/components/youtube_video.jsx @@ -5,7 +5,7 @@ import ChannelStore from 'stores/channel_store.jsx'; import WebClient from 'client/web_client.jsx'; import * as Utils from 'utils/utils.jsx'; -const ytRegex = /(?:http|https):\/\/(?:www\.)?(?:(?:youtube\.com\/(?:(?:v\/)|(\/u\/\w\/)|(?:(?:watch|embed\/watch)(?:\/|.*v=))|(?:embed\/)|(?:user\/[^\/]+\/u\/[0-9]\/)))|(?:youtu\.be\/))([^#&\?]*)/; +const ytRegex = /(?:http|https):\/\/(?:www\.|m\.)?(?:(?:youtube\.com\/(?:(?:v\/)|(?:(?:watch|embed\/watch)(?:\/|.*v=))|(?:embed\/)|(?:user\/[^\/]+\/u\/[0-9]\/)))|(?:youtu\.be\/))([^#&\?]*)/; import React from 'react'; |