Merge "MWLinkAnnotationInspector: Work around annoying syntax highlighting bug in Gerrit"

This commit is contained in:
jenkins-bot 2019-07-09 17:09:40 +00:00 committed by Gerrit Code Review
commit 2ec5bd5447

View file

@ -236,7 +236,7 @@ ve.ui.MWLinkAnnotationInspector.prototype.onInternalLinkInputChange = function (
}
if (
!this.allowProtocolInInternal &&
/^(?:[a-z][a-z0-9$\-_@.&!*"'(),]*:)?\/\//i.test( value.trim() )
( /^(?:[a-z][a-z0-9$\-_@.&!*"'(),]*:)?\/\//i ).test( value.trim() )
) {
this.linkTypeIndex.setTabPanel( 'external' );
// Changing tabPanel focuses and selects the input, so collapse the cursor back to the end.