mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-10 01:02:08 +01:00
This commit is contained in:
parent
86becd2514
commit
3dcfc302e4
1 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue