Merge "Link target input widget: Make '' an invalid link target"

This commit is contained in:
jenkins-bot 2014-08-28 00:04:43 +00:00 committed by Gerrit Code Review
commit d220e03cf8

View file

@ -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();
};
/**