1
0
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:
gorhill 2016-01-27 12:42:46 -05:00
parent 18ed625f0e
commit 2d502076d6

View File

@ -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);