mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-05 18:32:30 +01:00
code review: disregard case-matching in redirection filters
This commit is contained in:
parent
18ed625f0e
commit
2d502076d6
@ -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 New Issue
Block a user