Skip to content

Commit ace8a10

Browse files
committed
Merge branch 'fix_script_protocol_check' of git://github.com/JordanMilne/Autolinker.js into JordanMilne-fix_script_protocol_check
2 parents b5e18ae + 1fa26e6 commit ace8a10

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)