Author: hhubner Date: 2007-05-04 08:25:42 -0400 (Fri, 04 May 2007) New Revision: 2160
Modified: trunk/projects/bos/payment-website/static/cms.js Log: Relax YouTube URL scanner.
Modified: trunk/projects/bos/payment-website/static/cms.js =================================================================== --- trunk/projects/bos/payment-website/static/cms.js 2007-04-26 12:36:57 UTC (rev 2159) +++ trunk/projects/bos/payment-website/static/cms.js 2007-05-04 12:25:42 UTC (rev 2160) @@ -81,7 +81,7 @@ { var text = input.value;
- text = text.replace(/.*src=" (http://www.youtube.com[^"]+).*/, "$1") + text = text.replace(/.*src=" *(http://www.youtube.com[^"]+).*/, "$1") input.value = text; if ((input.value != "") && !input.value.match(/^http://www.youtube.com/v/\S+/)) { alert("Invalid YouTube URL: " + input.value);