Merge "Support protocol-relative URLs in the link inspector"

This commit is contained in:
Trevor Parscal 2012-06-21 05:53:43 +00:00 committed by Gerrit Code Review
commit c12eca96fc

View file

@ -135,7 +135,7 @@ ve.ui.LinkInspector.prototype.onClose = function( accept ) {
var annotation;
// Figure out if this is an internal or external link
// TODO better logic
if ( target.match( /^https?:\/\// ) ) {
if ( target.match( /^(https?:)?\/\// ) ) {
// External link
annotation = {
'type': 'link/extLink',