mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-09-25 11:16:51 +00:00
Merge "MWLinkAnnotationInspector: Work around annoying syntax highlighting bug in Gerrit"
This commit is contained in:
commit
2ec5bd5447
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue