[pLog-svn] r4139 -
plog/branches/lifetype-1.1.2/js/tinymce/plugins/insertvideo
oscar at devel.lifetype.net
oscar at devel.lifetype.net
Wed Oct 18 19:20:27 GMT 2006
Author: oscar
Date: 2006-10-18 19:20:25 +0000 (Wed, 18 Oct 2006)
New Revision: 4139
Modified:
plog/branches/lifetype-1.1.2/js/tinymce/plugins/insertvideo/functions.js
Log:
Fixed issue 1088 (http://bugs.lifetype.net/view.php?id=1088)
Modified: plog/branches/lifetype-1.1.2/js/tinymce/plugins/insertvideo/functions.js
===================================================================
--- plog/branches/lifetype-1.1.2/js/tinymce/plugins/insertvideo/functions.js 2006-10-17 21:43:38 UTC (rev 4138)
+++ plog/branches/lifetype-1.1.2/js/tinymce/plugins/insertvideo/functions.js 2006-10-18 19:20:25 UTC (rev 4139)
@@ -13,7 +13,7 @@
// check if this is a URL pointing to a youtube link or to a youtube video
if( url.substring( 0, 31 ) == "http://www.youtube.com/watch?v=" ) {
// and if it's a link to a normal youtube page, build the right link to the video player
- var regexp = /http:\/\/www.youtube.com\/.*?v=([\-0-9a-zA-z]*).*/i;
+ var regexp = /http:\/\/www.youtube.com\/.*?v=([\-0-9a-zA-z_]*).*/i;
result = regexp.exec( url );
if( result ) {
videoId = result[1];
@@ -33,7 +33,7 @@
// check if it's a link to a video page or a link to the video player
if( url.substring( 0, 40 ) == "http://video.google.com/videoplay?docid=" ) {
// if it's a link to a video page, generate the right one
- var regexp = /http:\/\/video.google.com\/.*?docid=([\-0-9a-zA-z]*).*/i;
+ var regexp = /http:\/\/video.google.com\/.*?docid=([\-0-9a-zA-z_]*).*/i;
result = regexp.exec( url );
if( result ) {
videoId = result[1];
More information about the pLog-svn
mailing list