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; var annotation;
// Figure out if this is an internal or external link // Figure out if this is an internal or external link
// TODO better logic // TODO better logic
if ( target.match( /^https?:\/\// ) ) { if ( target.match( /^(https?:)?\/\// ) ) {
// External link // External link
annotation = { annotation = {
'type': 'link/extLink', 'type': 'link/extLink',