Skip to content

Commit 1fa26e6

Browse files
committed
Use case-insensitive matching for forbidden protocols
1 parent 15e4504 commit 1fa26e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/matchParser/MatchValidator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ Autolinker.MatchValidator = Autolinker.Util.extend( Object, {
101101
* @return {Boolean} `true` if the scheme is a valid one, `false` otherwise.
102102
*/
103103
isValidUriScheme : function( uriSchemeMatch ) {
104-
var uriScheme = uriSchemeMatch.match( this.uriSchemeRegex )[ 0 ];
104+
var uriScheme = uriSchemeMatch.match( this.uriSchemeRegex )[ 0 ].toLowerCase();
105105

106106
return ( uriScheme !== 'javascript:' && uriScheme !== 'vbscript:' );
107107
},

0 commit comments

Comments
 (0)