mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-10 09:07:54 +01: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 ) {
|
for ( rule in rules ) {
|
||||||
pattern = rules[rule];
|
pattern = rules[rule];
|
||||||
if ( pattern instanceof RegExp === false ) {
|
if ( pattern instanceof RegExp === false ) {
|
||||||
pattern = rules[rule] = new RegExp(pattern);
|
pattern = rules[rule] = new RegExp(pattern, 'i');
|
||||||
}
|
}
|
||||||
if ( pattern.test(reqURL) ) {
|
if ( pattern.test(reqURL) ) {
|
||||||
return (this.resourceNameRegister = rule);
|
return (this.resourceNameRegister = rule);
|
||||||
|
|
Loading…
Reference in a new issue