Wrap external URL protocols regex in brackets.

Bug: 65547
Change-Id: Ie69bfa2bbf3db01b89242655c8aa36c2483e7265
This commit is contained in:
Krenair 2014-06-12 17:05:43 +01:00
parent 0abbc2b02b
commit 638ad9e985

View file

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