gorhill 2017-11-08 13:29:04 -05:00
parent 86becd2514
commit 3dcfc302e4
No known key found for this signature in database
GPG key ID: 25E1490B761470C2

View file

@ -302,11 +302,13 @@ var onBeforeRootFrameRequest = function(details) {
/******************************************************************************/ /******************************************************************************/
// https://github.com/gorhill/uBlock/issues/3208
// Mind case insensitivity.
var toBlockDocResult = function(url, hostname, logData) { var toBlockDocResult = function(url, hostname, logData) {
if ( typeof logData.regex !== 'string' ) { return; } if ( typeof logData.regex !== 'string' ) { return; }
var re = new RegExp(logData.regex), var re = new RegExp(logData.regex, 'i'),
match = re.exec(url.toLowerCase()); match = re.exec(url.toLowerCase());
if ( match === null ) { return ''; } if ( match === null ) { return false; }
// https://github.com/chrisaljoudi/uBlock/issues/1128 // https://github.com/chrisaljoudi/uBlock/issues/1128
// https://github.com/chrisaljoudi/uBlock/issues/1212 // https://github.com/chrisaljoudi/uBlock/issues/1212