mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 10:35:48 +00:00
Merge "ve.dm.MWMagicLinkNode: Fix matching RFC magic links"
This commit is contained in:
commit
b81e8e3e2e
|
@ -268,7 +268,7 @@ ve.dm.MWMagicLinkType.prototype.getCode = function () {
|
|||
* @return {boolean}
|
||||
*/
|
||||
ve.dm.MWMagicLinkType.prototype.matchHref = function ( href ) {
|
||||
return href.replace( /^https?:/i, '' ) === this.getHref();
|
||||
return href.replace( /^https?:/i, '' ) === this.getHref().replace( /^https?:/i, '' );
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue