mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 02:23:58 +00:00
Merge "Support protocol-relative URLs in the link inspector"
This commit is contained in:
commit
c12eca96fc
|
@ -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',
|
||||
|
|
Loading…
Reference in a new issue