Commit da402e16 authored by Nigel McNie's avatar Nigel McNie
Browse files

Allowed underscores in youtube video urls, they seem to be needed sometimes.

parent f6d1957c
......@@ -114,7 +114,7 @@ class PluginBlocktypeExternalvideo extends SystemBlocktype {
private static function make_video_url($url) {
static $embedsources = array(
'match' => '#.*youtube\.com.*v(=|\/)([a-zA-Z0-9-]+).*#',
'match' => '#.*youtube\.com.*v(=|\/)([a-zA-Z0-9_-]+).*#',
'url' => '$2'
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment