From fd5f07350c88bd5af6e46436514aee97c420f16b Mon Sep 17 00:00:00 2001 From: gorhill Date: Thu, 26 May 2016 08:49:59 -0400 Subject: [PATCH] fix https://github.com/gorhill/uBlock/issues/1660 --- src/js/static-net-filtering.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/js/static-net-filtering.js b/src/js/static-net-filtering.js index f5e5242ce..8019faa30 100644 --- a/src/js/static-net-filtering.js +++ b/src/js/static-net-filtering.js @@ -919,7 +919,7 @@ FilterGenericHnAnchoredHostname.fromSelfie = function(s) { // Regex-based filters var FilterRegex = function(s) { - this.re = new RegExp(s); + this.re = new RegExp(s, 'i'); }; FilterRegex.prototype.match = function(url) { @@ -946,7 +946,7 @@ FilterRegex.fromSelfie = function(s) { /******************************************************************************/ var FilterRegexHostname = function(s, domainOpt) { - this.re = new RegExp(s); + this.re = new RegExp(s, 'i'); this.domainOpt = domainOpt; this.hostnameTest = hostnameTestPicker(this); };