From 638ad9e98514a5967421aac592b3e4be97c5512f Mon Sep 17 00:00:00 2001 From: Krenair Date: Thu, 12 Jun 2014 17:05:43 +0100 Subject: [PATCH] Wrap external URL protocols regex in brackets. Bug: 65547 Change-Id: Ie69bfa2bbf3db01b89242655c8aa36c2483e7265 --- modules/ve-mw/init/ve.init.mw.Platform.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ve-mw/init/ve.init.mw.Platform.js b/modules/ve-mw/init/ve.init.mw.Platform.js index dfc87dca2b..1073f38cf0 100644 --- a/modules/ve-mw/init/ve.init.mw.Platform.js +++ b/modules/ve-mw/init/ve.init.mw.Platform.js @@ -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();