Merge "Make URL schemes case-insensitive"

This commit is contained in:
jenkins-bot 2015-08-14 18:04:31 +00:00 committed by Gerrit Code Review
commit 1088e953a9

View file

@ -19,10 +19,12 @@ ve.init.mw.Platform = function VeInitMwPlatform() {
// Properties // Properties
this.externalLinkUrlProtocolsRegExp = new RegExp( this.externalLinkUrlProtocolsRegExp = new RegExp(
'^(' + mw.config.get( 'wgUrlProtocols' ) + ')' '^(' + mw.config.get( 'wgUrlProtocols' ) + ')',
'i'
); );
this.unanchoredExternalLinkUrlProtocolsRegExp = new RegExp( this.unanchoredExternalLinkUrlProtocolsRegExp = new RegExp(
'(' + mw.config.get( 'wgUrlProtocols' ) + ')' '(' + mw.config.get( 'wgUrlProtocols' ) + ')',
'i'
); );
this.parsedMessages = {}; this.parsedMessages = {};
this.linkCache = new ve.init.mw.LinkCache(); this.linkCache = new ve.init.mw.LinkCache();