Merge "ve.dm.MWMagicLinkNode: Fix matching RFC magic links"

This commit is contained in:
jenkins-bot 2022-10-26 16:44:16 +00:00 committed by Gerrit Code Review
commit b81e8e3e2e

View file

@ -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, '' );
};
/**