mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-12-03 18:36:20 +00:00
Merge "Make URL schemes case-insensitive"
This commit is contained in:
commit
1088e953a9
|
@ -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();
|
||||||
|
|
Loading…
Reference in a new issue