mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-29 00:30:44 +00:00
Merge "Link target input widget: Make '' an invalid link target"
This commit is contained in:
commit
d220e03cf8
|
@ -89,7 +89,7 @@ ve.ui.MWLinkTargetInputWidget.prototype.isValid = function () {
|
|||
return this.annotation.getAttribute( 'href' )
|
||||
.match( /(^|\s)((https?:\/\/)?[\w-]+(\.[\w-]+)+\.?(:\d+)?(\/\S*)?)/gi );
|
||||
}
|
||||
return true;
|
||||
return !!this.getValue();
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue