1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-07-08 12:57:57 +02:00
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) {
if ( typeof logData.regex !== 'string' ) { return; }
var re = new RegExp(logData.regex),
var re = new RegExp(logData.regex, 'i'),
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/1212