From b2f083be306b604dc213ae35539119de1abc53fb Mon Sep 17 00:00:00 2001 From: Savetheinternet Date: Thu, 17 Nov 2011 08:03:01 +1100 Subject: [PATCH] Fixed bug with some embedded YouTube videos (containing _ or -) --- inc/config.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/config.php b/inc/config.php index 0798cba9..98cf1f73 100644 --- a/inc/config.php +++ b/inc/config.php @@ -510,7 +510,7 @@ // It's very important that you match the full string (with ^ and $) or things will not work correctly. $config['embedding'] = Array( Array( - '/^https?:\/\/(\w+\.)?youtube\.com\/watch\?v=([a-zA-Z0-9-]{10,11})(&.+)?$/i', + '/^https?:\/\/(\w+\.)?youtube\.com\/watch\?v=([a-zA-Z0-9\-_]{10,11})(&.+)?$/i', '' ), Array(