summaryrefslogtreecommitdiffstats
path: root/webapp/components/youtube_video.jsx
diff options
context:
space:
mode:
authorlfbrock <lfbrock@users.noreply.github.com>2016-09-29 06:56:50 -0700
committerJoram Wilander <jwawilander@gmail.com>2016-09-29 09:56:50 -0400
commitac6ae23c8e72b0b79998c32b0e91873ed2bb0e59 (patch)
tree31245d3ef82bc4b926e595fc03877c48f1b9b3a9 /webapp/components/youtube_video.jsx
parentd298e99d9b37aeedf8e40770aeed62c4c8ff1049 (diff)
downloadchat-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.jsx2
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';