mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
code review: disregard case-matching in redirection filters
This commit is contained in:
parent
18ed625f0e
commit
2d502076d6
1 changed files with 1 additions and 1 deletions
|
|
@ -129,7 +129,7 @@ RedirectEngine.prototype.lookup = function(context) {
|
|||
for ( rule in rules ) {
|
||||
pattern = rules[rule];
|
||||
if ( pattern instanceof RegExp === false ) {
|
||||
pattern = rules[rule] = new RegExp(pattern);
|
||||
pattern = rules[rule] = new RegExp(pattern, 'i');
|
||||
}
|
||||
if ( pattern.test(reqURL) ) {
|
||||
return (this.resourceNameRegister = rule);
|
||||
|
|
|
|||
Loading…
Reference in a new issue