mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-25 06:46:26 +00:00
Wrap external URL protocols regex in brackets.
Bug: 65547 Change-Id: Ie69bfa2bbf3db01b89242655c8aa36c2483e7265
This commit is contained in:
parent
0abbc2b02b
commit
638ad9e985
|
@ -20,7 +20,7 @@ ve.init.mw.Platform = function VeInitMwPlatform() {
|
|||
ve.init.Platform.call( this );
|
||||
|
||||
// Properties
|
||||
this.externalLinkUrlProtocolsRegExp = new RegExp( '^' + mw.config.get( 'wgUrlProtocols' ) );
|
||||
this.externalLinkUrlProtocolsRegExp = new RegExp( '^(' + mw.config.get( 'wgUrlProtocols' ) + ')' );
|
||||
this.modulesUrl = mw.config.get( 'wgExtensionAssetsPath' ) + '/VisualEditor/modules';
|
||||
this.parsedMessages = {};
|
||||
this.linkCache = new ve.init.mw.LinkCache();
|
||||
|
|
Loading…
Reference in a new issue